commit dabc6e7774ab31abf6957133b7e7983e1b300c08
parent ede11ac52695c49e6ac31d2b04c460801b45615e
Author: MTRNord <mtrnord1@gmail.com>
Date: Sat, 2 Mar 2024 19:07:28 +0100
Add config to element call deployment
Diffstat:
3 files changed, 30 insertions(+), 0 deletions(-)
diff --git a/templates/configmap.yaml b/templates/configmap.yaml
@@ -0,0 +1,18 @@
+---
+apiVersion: v1
+kind: ConfigMap
+metadata:
+ name: {{ include "element_call.fullname" . }}
+ labels:
+ {{- include "element_call.labels" . | nindent 4 }}
+data:
+ config.json: |
+ {
+ "default_server_config": {
+ "m.homeserver": {
+ "base_url": "{{ .Values.element_call.config.homeserver.base_url }}",
+ "server_name": "{{ .Values.element_call.config.homeserver.server_name }}"
+ }
+ },
+ "eula": "{{ .Values.element_call.config.eula }}"
+ }
+\ No newline at end of file
diff --git a/templates/deployment.yaml b/templates/deployment.yaml
@@ -56,10 +56,15 @@ spec:
{{- toYaml .Values.element_call.resources | nindent 12 }}
{{- with .Values.element_call.volumeMounts }}
volumeMounts:
+ - name: config
+ mountPath: /app
{{- toYaml . | nindent 12 }}
{{- end }}
{{- with .Values.element_call.volumes }}
volumes:
+ - name: config
+ configMap:
+ name: {{ include "element_call.fullname" . }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.element_call.nodeSelector }}
diff --git a/values.yaml b/values.yaml
@@ -12,6 +12,12 @@ livekit_secret: secret
element_call:
replicaCount: 1
+ config:
+ eula: https://example.com
+ homeserver:
+ base_url: "https://call.localhost"
+ server_name: "call.localhost"
+
image:
repository: ghcr.io/element-hq/element-call
pullPolicy: IfNotPresent