Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 15 additions & 2 deletions livekit-server/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,13 @@ spec:
- name: LIVEKIT_TURN_KEY
value: /etc/lkcert/tls.key
{{- end }}
{{- with .Values.extraEnv }}
{{- toYaml . | nindent 12 }}
{{- end }}
{{- with .Values.extraEnvFrom }}
envFrom:
{{- toYaml . | nindent 12 }}
{{- end }}
ports:
- name: http
containerPort: {{ .Values.livekit.port }}
Expand Down Expand Up @@ -106,7 +113,7 @@ spec:
port: http
resources:
{{- toYaml .Values.resources | nindent 12 }}
{{- if or .Values.storeKeysInSecret.enabled (and .Values.livekit.turn.enabled .Values.livekit.turn.tls_port (not .Values.livekit.turn.external_tls)) }}
{{- if or .Values.storeKeysInSecret.enabled (and .Values.livekit.turn.enabled .Values.livekit.turn.tls_port (not .Values.livekit.turn.external_tls)) .Values.extraVolumeMounts }}
volumeMounts:
{{- if .Values.storeKeysInSecret.enabled }}
- name: keys-volume
Expand All @@ -118,8 +125,11 @@ spec:
mountPath: /etc/lkcert
readOnly: true
{{- end }}
{{- with .Values.extraVolumeMounts }}
{{- toYaml . | nindent 12 }}
{{- end }}
{{- end }}
{{- if or .Values.storeKeysInSecret.enabled (and .Values.livekit.turn.enabled .Values.livekit.turn.tls_port (not .Values.livekit.turn.external_tls)) }}
{{- if or .Values.storeKeysInSecret.enabled (and .Values.livekit.turn.enabled .Values.livekit.turn.tls_port (not .Values.livekit.turn.external_tls)) .Values.extraVolumes }}
volumes:
{{- if .Values.storeKeysInSecret.enabled }}
- name: keys-volume
Expand All @@ -132,6 +142,9 @@ spec:
secret:
secretName: {{ required "tls secret required if turn enabled" .Values.livekit.turn.secretName }}
{{- end }}
{{- with .Values.extraVolumes }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{- end }}
{{- with .Values.nodeSelector }}
nodeSelector:
Expand Down
32 changes: 32 additions & 0 deletions livekit-server/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,38 @@ image:

imagePullSecrets: []

# Extra environment variables for the livekit-server container.
# Use this to inject secrets via valueFrom.secretKeyRef without baking
# them into the plaintext ConfigMap. LiveKit substitutes ${VAR} in its
# YAML config at startup, so you can reference these from livekit.* below.
extraEnv: []
# - name: REDIS_PASSWORD
# valueFrom:
# secretKeyRef:
# name: my-redis-secret
# key: password

# Extra envFrom sources (e.g. envFrom an existing Secret in bulk).
extraEnvFrom: []
# - secretRef:
# name: livecircle-external-env-secrets

# Extra volumes to attach to the pod. Useful for mounting CA certificate
# bundles, additional config files, etc.
extraVolumes: []
# - name: redis-ca
# secret:
# secretName: my-secret
# items:
# - key: REDIS_CA_CERT
# path: ca.crt

# Extra volumeMounts for the livekit-server container. Pair with extraVolumes.
extraVolumeMounts: []
# - name: redis-ca
# mountPath: /etc/redis-ca
# readOnly: true

terminationGracePeriodSeconds: 18000

# configuration for livekit
Expand Down
Loading