From f688f41d92b97bd735494fd24150c978662b1c27 Mon Sep 17 00:00:00 2001 From: jinlei Date: Tue, 31 Jan 2023 03:55:12 -0500 Subject: [PATCH] Feat: aliyun --- livekit-server/templates/ingress.yaml | 4 ++++ livekit-server/templates/service.yaml | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) 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