move excalidraw to dedicated deployment

This commit is contained in:
Clemens 2023-09-22 14:57:13 +02:00
parent 934eda5b35
commit 807c15cf92
5 changed files with 28 additions and 9 deletions

View file

@ -34,7 +34,8 @@
(jitsi/generate-jvb-service)
(jitsi/generate-web-service)
(jitsi/generate-etherpad-service)
(jitsi/generate-deployment config)]
(jitsi/generate-deployment config)
(jitsi/generate-excalidraw-deployment)]
(jitsi/generate-ingress-web config)
(jitsi/generate-ingress-etherpad config)
(jitsi/generate-ingress-excalidraw-backend config)

View file

@ -88,3 +88,6 @@
(str "https://etherpad." fqdn "/p/"))
(cm/replace-all-matching-values-by-new-value "REPLACE_EXCALIDRAW_BACKEND_URL"
(str "https://excalidraw-backend." fqdn)))))
(defn-spec generate-excalidraw-deployment cp/map-or-seq? []
(yaml/load-as-edn "jitsi/excalidraw-deployment.yaml"))

View file

@ -149,9 +149,4 @@ spec:
name: jitsi-config
key: JICOFO_AUTH_PASSWORD
- name: TZ
value: Europe/Berlin
- name: excalidraw-backend
image: domaindrivenarchitecture/excalidraw-backend
env:
- name: PORT
value: "3002"
value: Europe/Berlin

View file

@ -8,6 +8,6 @@ spec:
ports:
- name: excalidraw-backend
port: 3002
targetPort: 3002
targetPort: 80
selector:
app: jitsi
app: excalidraw-backend

View file

@ -0,0 +1,20 @@
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: excalidraw-backend
name: excalidraw-backend
spec:
strategy:
type: Recreate
selector:
matchLabels:
app: excalidraw-backend
template:
metadata:
labels:
app: excalidraw-backend
spec:
containers:
- name: excalidraw-backend
image: domaindrivenarchitecture/excalidraw-backend