Add excalidraw k8s requirements

This commit is contained in:
bom 2023-09-22 13:47:36 +02:00
parent 9ac0665ab4
commit ac866a2bcc
4 changed files with 29 additions and 1 deletions

View file

@ -37,5 +37,6 @@
(jitsi/generate-deployment config)] (jitsi/generate-deployment config)]
(jitsi/generate-ingress-web config) (jitsi/generate-ingress-web config)
(jitsi/generate-ingress-etherpad config) (jitsi/generate-ingress-etherpad config)
(jitsi/generate-ingress-excalidraw-backend config)
(when (:contains? config :mon-cfg) (when (:contains? config :mon-cfg)
(mon/generate (:mon-cfg config) (:mon-auth auth))))))) (mon/generate (:mon-cfg config) (:mon-auth auth)))))))

View file

@ -51,6 +51,15 @@
:fqdns [(str "etherpad." (:fqdn config))]} :fqdns [(str "etherpad." (:fqdn config))]}
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? (defn-spec generate-secret-jitsi cp/map-or-seq?
[auth auth?] [auth auth?]
(let [{:keys [jvb-auth-password jicofo-auth-password jicofo-component-secret]} auth] (let [{:keys [jvb-auth-password jicofo-auth-password jicofo-component-secret]} auth]

View file

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

View file

@ -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