diff --git a/livekit-server/Chart.yaml b/livekit-server/Chart.yaml index d42457b..5e3bc82 100644 --- a/livekit-server/Chart.yaml +++ b/livekit-server/Chart.yaml @@ -2,8 +2,8 @@ apiVersion: v2 name: livekit-server description: Real-time infrastructure for developers. LiveKit is the open source stack for streaming audio, video, and data. type: application -version: 1.8.3 -appVersion: "v1.8.3" +version: 1.9.12 +appVersion: "v1.9.12" sources: - https://github.com/livekit/livekit diff --git a/livekit-server/templates/deployment.yaml b/livekit-server/templates/deployment-daemonset.yaml similarity index 93% rename from livekit-server/templates/deployment.yaml rename to livekit-server/templates/deployment-daemonset.yaml index 7b35cee..ebc60d7 100644 --- a/livekit-server/templates/deployment.yaml +++ b/livekit-server/templates/deployment-daemonset.yaml @@ -1,5 +1,5 @@ apiVersion: apps/v1 -kind: Deployment +kind: {{ .Values.deploymentType }} metadata: name: {{ include "livekit-server.fullname" . }} labels: @@ -9,13 +9,13 @@ metadata: {{- toYaml .Values.deploymentAnnotations | nindent 4 }} {{- end }} spec: - {{- if not .Values.autoscaling.enabled }} + {{- if and (not .Values.autoscaling.enabled) (eq .Values.deploymentType "Deployment") }} replicas: {{ .Values.replicaCount }} {{- end }} selector: matchLabels: {{- include "livekit-server.selectorLabels" . | nindent 6 }} - {{- if .Values.deploymentStrategy }} + {{- if and (.Values.deploymentStrategy) (eq .Values.deploymentType "Deployment") }} strategy: {{- toYaml .Values.deploymentStrategy | nindent 4 }} {{- end }} @@ -47,7 +47,13 @@ spec: {{- toYaml .Values.securityContext | nindent 12 }} image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" imagePullPolicy: {{ .Values.image.pullPolicy }} - args: ["--disable-strict-config"] + args: + - "--disable-strict-config" + {{- if .Values.extraArgs }} + {{- range .Values.extraArgs }} + - "{{ . }}" + {{- end }} + {{- end }} env: - name: LIVEKIT_CONFIG valueFrom: diff --git a/livekit-server/templates/turnloadbalancer.yaml b/livekit-server/templates/turnloadbalancer.yaml index e68184f..3e016a4 100644 --- a/livekit-server/templates/turnloadbalancer.yaml +++ b/livekit-server/templates/turnloadbalancer.yaml @@ -11,6 +11,9 @@ metadata: {{- end }} spec: type: {{ default "LoadBalancer" .Values.livekit.turn.serviceType }} + {{- if .Values.livekit.turn.loadBalancerIP }} + loadBalancerIP: {{ .Values.livekit.turn.loadBalancerIP }} + {{- end }} ports: - port: 443 targetPort: {{ .Values.livekit.turn.tls_port }} diff --git a/livekit-server/values.yaml b/livekit-server/values.yaml index bcf6d51..5cbc762 100644 --- a/livekit-server/values.yaml +++ b/livekit-server/values.yaml @@ -4,6 +4,9 @@ replicaCount: 1 +# deploymentType can be one of "Deployment", "DaemonSet" +deploymentType: Deployment + image: repository: livekit/livekit-server pullPolicy: IfNotPresent @@ -43,6 +46,7 @@ livekit: # domain: turn.myhost.com # secretName: loadBalancerAnnotations: {} + # loadBalancerIP: # webhook: # room: # region: @@ -150,3 +154,6 @@ serviceMonitor: name: "" # The scrape interval interval: 30s + +# Extra args for livekit-server +extraArgs: []