change udp

master
Marius Ensrud 4 years ago
parent a418367b8c
commit 641ecd28f1

@ -49,12 +49,12 @@ metadata:
name: {{ include "omada-controller.fullname" . }}-udp name: {{ include "omada-controller.fullname" . }}-udp
labels: labels:
{{- include "omada-controller.labels" . | nindent 4 }} {{- include "omada-controller.labels" . | nindent 4 }}
{{- with .Values.service.annotations }} #{{- with .Values.service.annotations }}
annotations: #annotations:
{{- toYaml . | nindent 4 }} #{{- toYaml . | nindent 4 }}
{{- end }} #{{- end }}
spec: spec:
type: {{ .Values.service.type }} type: ClusterIP
ports: ports:
- port: {{ .Values.service.eapdiscovery.port }} - port: {{ .Values.service.eapdiscovery.port }}
targetPort: 29810 targetPort: 29810
@ -62,6 +62,11 @@ spec:
name: eapdiscovery name: eapdiscovery
selector: selector:
{{- include "omada-controller.selectorLabels" . | nindent 4 }} {{- include "omada-controller.selectorLabels" . | nindent 4 }}
{{- if .Values.service.externalIPs.enabled }}
externalTrafficPolicy: Local
externalIPs:{{- range .Values.service.externalIPs.ip }}
- {{.}}{{- end }}
{{- end }}
{{ else }} {{ else }}
apiVersion: v1 apiVersion: v1
kind: Service kind: Service

Loading…
Cancel
Save