diff --git a/src/main/cljc/dda/c4k_jitsi/core.cljc b/src/main/cljc/dda/c4k_jitsi/core.cljc index ed92916..78d5579 100644 --- a/src/main/cljc/dda/c4k_jitsi/core.cljc +++ b/src/main/cljc/dda/c4k_jitsi/core.cljc @@ -37,5 +37,6 @@ (jitsi/generate-deployment config)] (jitsi/generate-ingress-web config) (jitsi/generate-ingress-etherpad config) + (jitsi/generate-ingress-excalidraw-backend config) (when (:contains? config :mon-cfg) (mon/generate (:mon-cfg config) (:mon-auth auth))))))) diff --git a/src/main/cljc/dda/c4k_jitsi/jitsi.cljc b/src/main/cljc/dda/c4k_jitsi/jitsi.cljc index 86a8286..8b30e24 100644 --- a/src/main/cljc/dda/c4k_jitsi/jitsi.cljc +++ b/src/main/cljc/dda/c4k_jitsi/jitsi.cljc @@ -51,6 +51,15 @@ :fqdns [(str "etherpad." (:fqdn config))]} config))) +(defn-spec generate-ingress-excalidraw-backend cp/map-or-seq? + [config config?] + (ing/generate-ingress-and-cert + (merge + {:service-name "excalidraw-backend" + :service-port 3002 + :fqdns [(str "excalidraw-backend." (:fqdn config))]} + config))) + (defn-spec generate-secret-jitsi cp/map-or-seq? [auth auth?] (let [{:keys [jvb-auth-password jicofo-auth-password jicofo-component-secret]} auth] diff --git a/src/main/resources/jitsi/deployment.yaml b/src/main/resources/jitsi/deployment.yaml index 8be2809..d5933b0 100644 --- a/src/main/resources/jitsi/deployment.yaml +++ b/src/main/resources/jitsi/deployment.yaml @@ -145,4 +145,9 @@ spec: name: jitsi-config key: JICOFO_AUTH_PASSWORD - name: TZ - value: Europe/Berlin \ No newline at end of file + value: Europe/Berlin + - name: excalidraw-backend + image: domaindrivenarchitecture/excalidraw-backend + env: + - name: PORT + value: "3002" \ No newline at end of file diff --git a/src/main/resources/jitsi/excalidraw-backend-service.yaml b/src/main/resources/jitsi/excalidraw-backend-service.yaml new file mode 100644 index 0000000..62f6e89 --- /dev/null +++ b/src/main/resources/jitsi/excalidraw-backend-service.yaml @@ -0,0 +1,13 @@ +apiVersion: v1 +kind: Service +metadata: + labels: + service: excalidraw-backend + name: excalidraw-backend +spec: + ports: + - name: excalidraw-backend + port: 3002 + targetPort: 3002 + selector: + app: jitsi \ No newline at end of file