diff --git a/charts/unifi-controller/templates/service.yaml b/charts/unifi-controller/templates/service.yaml index 186ac63..b8ea2b8 100644 --- a/charts/unifi-controller/templates/service.yaml +++ b/charts/unifi-controller/templates/service.yaml @@ -24,7 +24,7 @@ spec: targetPort: 3478 protocol: TCP name: stun - {{- if eq .Values.service.separateProtocols false }} + {{- if .Values.service.combinedProtocols }} - port: 1900 targetPort: 1900 protocol: UDP @@ -36,7 +36,7 @@ spec: {{- end }} selector: {{- include "unifi-controller.selectorLabels" . | nindent 4 }} -{{- if eq .Values.service.separateProtocols true }} +{{- if eq .Values.service.combinedProtocols false }} --- apiVersion: v1 kind: Service diff --git a/charts/unifi-controller/values.yaml b/charts/unifi-controller/values.yaml index 1a921d4..bdd3ac3 100644 --- a/charts/unifi-controller/values.yaml +++ b/charts/unifi-controller/values.yaml @@ -50,8 +50,8 @@ securityContext: {} service: type: ClusterIP - # Separate TCP and UDP ports into different services (required for MetalLB) - separateProtocols: false + # Use the same service for TCP and UDP ports + combinedProtocols: true annotations: {} ingress: