Skip to content

Commit

Permalink
Add value to control whether TURN loadbalancer needs to be created
Browse files Browse the repository at this point in the history
  • Loading branch information
Stogas committed Nov 22, 2023
1 parent d0fa630 commit 9771be1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions livekit-server/templates/turnloadbalancer.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- if and .Values.livekit.turn.enabled .Values.livekit.turn.tls_port }}
{{- if and (and .Values.livekit.turn.enabled .Values.livekit.turn.tls_port) .Values.turnLoadbalancer.enable }}
apiVersion: v1
kind: Service
metadata:
Expand All @@ -10,7 +10,7 @@ metadata:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
type: {{ default "LoadBalancer" .Values.livekit.turn.serviceType }}
type: {{ default "LoadBalancer" .Values.livekit.turn.serviceType }}
ports:
- port: 443
targetPort: {{ .Values.livekit.turn.tls_port }}
Expand Down
3 changes: 3 additions & 0 deletions livekit-server/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ loadBalancer:
servicePort: 80
annotations: {}

turnLoadbalancer:
enable: true

autoscaling:
enabled: false
minReplicas: 1
Expand Down

0 comments on commit 9771be1

Please sign in to comment.