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
4 changes: 3 additions & 1 deletion livekit-server/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ metadata:
kubernetes.io/ingress.class: "gce"
{{- end }}
# DO with cert manager
{{- if eq .Values.loadBalancer.type "do" }}
{{- if or (eq .Values.loadBalancer.type "do") (eq .Values.loadBalancer.type "traefik") }}
cert-manager.io/cluster-issuer: {{ .Values.loadBalancer.clusterIssuer }}
{{- end }}
{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion }}
Expand All @@ -37,6 +37,8 @@ apiVersion: extensions/v1beta1
spec:
{{- if eq .Values.loadBalancer.type "do" }}
ingressClassName: nginx
{{- else if eq .Values.loadBalancer.type "traefik" }}
ingressClassName: traefik
{{- end }}
rules:
# In order to work with cert manager on DO, we cannot set us as a default backend
Expand Down
4 changes: 3 additions & 1 deletion server-sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,16 @@ livekit:
serviceType: "LoadBalancer"

loadBalancer:
# valid values: disable, alb, aws, gke, gke-managed-cert, gke-native-vpc, do
# valid values: disable, alb, aws, gke, gke-managed-cert, gke-native-vpc, do, traefik
# on AWS, we recommend using alb load balancer, which supports TLS termination
# * in order to use alb, aws-ingress-controller must be installed
# https://docs.aws.amazon.com/eks/latest/userguide/alb-ingress.html
# * for gke-managed-cert type follow https://cloud.google.com/kubernetes-engine/docs/how-to/managed-certs
# and set staticIpName to your reserved static IP, and certificateName to be
# name of the managed cert
# * for do uncomment clusterIssuer with your cert manager issuer
# * for traefik uncomment clusterIssuer with your cert manager issuer as well
# this will set the ingressClassName to traefik
type: disable
# staticIpName: <nameofIpAddressCreated>
# certificateName: <nameOfCert>
Expand Down