From 59ff8a35fe2f07c674704aa1f575aac4281058f7 Mon Sep 17 00:00:00 2001 From: Alessandro Mizzaro Date: Mon, 28 Oct 2024 10:57:20 +0100 Subject: [PATCH] Add existing secret for REDIS --- livekit-server/templates/deployment.yaml | 7 +++++++ livekit-server/values.yaml | 1 + server-sample.yaml | 1 + 3 files changed, 9 insertions(+) diff --git a/livekit-server/templates/deployment.yaml b/livekit-server/templates/deployment.yaml index 7b35cee..6ebb0a7 100644 --- a/livekit-server/templates/deployment.yaml +++ b/livekit-server/templates/deployment.yaml @@ -60,6 +60,13 @@ spec: - name: LIVEKIT_TURN_KEY value: /etc/lkcert/tls.key {{- end }} + {{- if .Values.livekit.redis.existingSecret }} + - name: REDIS_PASSWORD + valueFrom: + secretKeyRef: + name: {{ .Values.livekit.redis.existingSecret }} + key: password + {{- end}} ports: - name: http containerPort: {{ .Values.livekit.port }} diff --git a/livekit-server/values.yaml b/livekit-server/values.yaml index bcf6d51..625a61b 100644 --- a/livekit-server/values.yaml +++ b/livekit-server/values.yaml @@ -30,6 +30,7 @@ livekit: # db: 0 # username: # password: + # existingSecret: # key value pairs (: >api_secret>) keys: {} diff --git a/server-sample.yaml b/server-sample.yaml index 39ed684..40d0554 100644 --- a/server-sample.yaml +++ b/server-sample.yaml @@ -25,6 +25,7 @@ livekit: # db: 0 # username: # password: + # existingSecret: # use_tls: true # one or more API key/secret pairs # see https://docs.livekit.io/guides/getting-started/#generate-api-key-and-secret