diff --git a/charts/omada-controller/5.1/templates/service.yaml b/charts/omada-controller/5.1/templates/service.yaml index a22ee1c..265fa2b 100644 --- a/charts/omada-controller/5.1/templates/service.yaml +++ b/charts/omada-controller/5.1/templates/service.yaml @@ -5,8 +5,10 @@ metadata: name: {{ include "omada-controller.fullname" . }} labels: {{- include "omada-controller.labels" . | nindent 4 }} + {{- with .Values.service.annotations }} annotations: - metallb.universe.tf/allow-shared-ip: omada + {{- toYaml . | nindent 4 }} + {{- end }} spec: type: {{ .Values.service.type }} ports: @@ -47,8 +49,10 @@ metadata: name: {{ include "omada-controller.fullname" . }}-udp labels: {{- include "omada-controller.labels" . | nindent 4 }} + {{- with .Values.service.annotations }} annotations: - metallb.universe.tf/allow-shared-ip: omada + {{- toYaml . | nindent 4 }} + {{- end }} spec: type: {{ .Values.service.type }} ports: diff --git a/charts/omada-controller/5.1/values.yaml b/charts/omada-controller/5.1/values.yaml index 256fb0a..84b82d8 100644 --- a/charts/omada-controller/5.1/values.yaml +++ b/charts/omada-controller/5.1/values.yaml @@ -47,6 +47,8 @@ securityContext: {} service: enabled: true type: NodePort + annotations: + metallb.universe.tf/allow-shared-ip: omada manage: port: 8088 managessl: