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
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

View File

@ -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: