fix combined protocol service

This commit is contained in:
James 2023-03-26 21:14:48 +01:00
parent 8178ea2d53
commit 7415337adf
2 changed files with 4 additions and 4 deletions

View File

@ -24,7 +24,7 @@ spec:
targetPort: 3478 targetPort: 3478
protocol: TCP protocol: TCP
name: stun name: stun
{{- if eq .Values.service.separateProtocols false }} {{- if .Values.service.combinedProtocols }}
- port: 1900 - port: 1900
targetPort: 1900 targetPort: 1900
protocol: UDP protocol: UDP
@ -36,7 +36,7 @@ spec:
{{- end }} {{- end }}
selector: selector:
{{- include "unifi-controller.selectorLabels" . | nindent 4 }} {{- include "unifi-controller.selectorLabels" . | nindent 4 }}
{{- if eq .Values.service.separateProtocols true }} {{- if eq .Values.service.combinedProtocols false }}
--- ---
apiVersion: v1 apiVersion: v1
kind: Service kind: Service

View File

@ -50,8 +50,8 @@ securityContext: {}
service: service:
type: ClusterIP type: ClusterIP
# Separate TCP and UDP ports into different services (required for MetalLB) # Use the same service for TCP and UDP ports
separateProtocols: false combinedProtocols: true
annotations: {} annotations: {}
ingress: ingress: