diff --git a/services/jitsi/deployment.yaml b/services/jitsi/deployment.yaml index 434cd77..3af4ed8 100644 --- a/services/jitsi/deployment.yaml +++ b/services/jitsi/deployment.yaml @@ -95,6 +95,18 @@ spec: type: Recreate selector: matchLabels: { app: jitsi-jvb } + initContainers: + - name: jvb-custom-config + image: busybox:1.36 + command: + - /bin/sh + - -c + - | + set -euo pipefail + cp /custom-config/custom-jvb.conf /config/custom-jvb.conf + volumeMounts: + - { name: cfg, mountPath: /config } + - { name: jvb-custom, mountPath: /custom-config } template: metadata: labels: { app: jitsi-jvb } @@ -130,7 +142,6 @@ spec: - { name: JVB_TCP_PORT, value: "4443" } volumeMounts: - { name: cfg, mountPath: /config } - - { name: jvb-custom, mountPath: /config/custom-jvb.conf, subPath: custom-jvb.conf } volumes: - name: cfg persistentVolumeClaim: { claimName: jitsi-jvb-config }