diff --git a/livekit-server/templates/ingress.yaml b/livekit-server/templates/ingress.yaml index 1f551ea..fb4fd2c 100644 --- a/livekit-server/templates/ingress.yaml +++ b/livekit-server/templates/ingress.yaml @@ -29,6 +29,7 @@ metadata: {{- if eq .Values.loadBalancer.type "do" }} cert-manager.io/cluster-issuer: {{ .Values.loadBalancer.clusterIssuer }} {{- end }} + {{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion }} apiVersion: networking.k8s.io/v1 {{- else }} @@ -38,6 +39,9 @@ spec: {{- if eq .Values.loadBalancer.type "do" }} ingressClassName: nginx {{- end }} + {{- if eq .Values.loadBalancer.type "aliyun" }} + ingressClassName: alb + {{- end }} rules: # In order to work with cert manager on DO, we cannot set us as a default backend {{- range .Values.loadBalancer.tls }} diff --git a/livekit-server/templates/service.yaml b/livekit-server/templates/service.yaml index 0c7d0bc..691d7c4 100644 --- a/livekit-server/templates/service.yaml +++ b/livekit-server/templates/service.yaml @@ -13,7 +13,7 @@ metadata: cloud.google.com/backend-config: '{"ports": {"{{ .Values.loadBalancer.servicePort }}":"{{ include "livekit-server.fullname" . }}"}}' {{- end }} spec: - {{- if or (eq .Values.loadBalancer.type "alb") (eq .Values.loadBalancer.type "gke") (eq .Values.loadBalancer.type "gke-managed-cert") (eq .Values.loadBalancer.type "do") }} + {{- if or (eq .Values.loadBalancer.type "alb") (eq .Values.loadBalancer.type "gke") (eq .Values.loadBalancer.type "gke-managed-cert") (eq .Values.loadBalancer.type "do") (eq .Values.loadBalancer.type "aliyun")}} type: NodePort {{- else if eq .Values.loadBalancer.type "aws" }} type: LoadBalancer