From f8b06f03aa25498343871935a0c62be7dc95e2be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dani=C3=A9l=20Kerkmann?= Date: Fri, 28 Jun 2024 15:13:35 +0200 Subject: [PATCH] add traefik support --- livekit-server/templates/ingress.yaml | 4 +++- server-sample.yaml | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/livekit-server/templates/ingress.yaml b/livekit-server/templates/ingress.yaml index ff48f71..07e5aa6 100644 --- a/livekit-server/templates/ingress.yaml +++ b/livekit-server/templates/ingress.yaml @@ -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 }} @@ -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 diff --git a/server-sample.yaml b/server-sample.yaml index 39ed684..0cc0e4d 100644 --- a/server-sample.yaml +++ b/server-sample.yaml @@ -49,7 +49,7 @@ 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 @@ -57,6 +57,8 @@ loadBalancer: # 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: # certificateName: