From 641ecd28f1992dd06f080b7cfcc658ce1748c5df Mon Sep 17 00:00:00 2001 From: Marius Ensrud Date: Mon, 28 Mar 2022 09:21:47 +0200 Subject: [PATCH] change udp --- .../omada-controller/5.1/templates/service.yaml | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/charts/omada-controller/5.1/templates/service.yaml b/charts/omada-controller/5.1/templates/service.yaml index 265fa2b..9da165d 100644 --- a/charts/omada-controller/5.1/templates/service.yaml +++ b/charts/omada-controller/5.1/templates/service.yaml @@ -49,12 +49,12 @@ metadata: name: {{ include "omada-controller.fullname" . }}-udp labels: {{- include "omada-controller.labels" . | nindent 4 }} - {{- with .Values.service.annotations }} - annotations: - {{- toYaml . | nindent 4 }} - {{- end }} + #{{- with .Values.service.annotations }} + #annotations: + #{{- toYaml . | nindent 4 }} + #{{- end }} spec: - type: {{ .Values.service.type }} + type: ClusterIP ports: - port: {{ .Values.service.eapdiscovery.port }} targetPort: 29810 @@ -62,6 +62,11 @@ spec: name: eapdiscovery selector: {{- include "omada-controller.selectorLabels" . | nindent 4 }} + {{- if .Values.service.externalIPs.enabled }} + externalTrafficPolicy: Local + externalIPs:{{- range .Values.service.externalIPs.ip }} + - {{.}}{{- end }} + {{- end }} {{ else }} apiVersion: v1 kind: Service