From fbb5795a0795e30fdd7d54e1c2006201d178dfcd Mon Sep 17 00:00:00 2001 From: danm Date: Wed, 30 Oct 2024 10:35:58 -0600 Subject: [PATCH] make the servicePort optional on for lk-ingress load balancer --- ingress/templates/service.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ingress/templates/service.yaml b/ingress/templates/service.yaml index 44a8e25..ea17ac2 100644 --- a/ingress/templates/service.yaml +++ b/ingress/templates/service.yaml @@ -6,9 +6,11 @@ metadata: spec: type: {{ default "LoadBalancer" .Values.ingress.serviceType }} ports: + {{- if .Values.loadBalancer.servicePort }} - port: {{ .Values.loadBalancer.servicePort }} protocol: TCP name: ws + {{- end }} - port: {{ .Values.ingress.rtmp_port }} protocol: TCP name: rtmp