mirror of
https://github.com/Thumbscrew/k8s-charts.git
synced 2025-04-24 16:39:52 +00:00
add optional UDP only service
This commit is contained in:
parent
66e8f222a7
commit
cd3b090074
@ -1,3 +1,4 @@
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
@ -23,6 +24,33 @@ spec:
|
||||
targetPort: 3478
|
||||
protocol: TCP
|
||||
name: stun
|
||||
{{- if eq .Values.service.separateProtocols false }}
|
||||
- port: 1900
|
||||
targetPort: 1900
|
||||
protocol: UDP
|
||||
name: l2discover
|
||||
- port: 5514
|
||||
targetPort: 5514
|
||||
protocol: UDP
|
||||
name: syslog
|
||||
{{- end }}
|
||||
selector:
|
||||
{{- include "unifi-controller.selectorLabels" . | nindent 4 }}
|
||||
{{- if eq .Values.service.separateProtocols true }}
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: {{ include "unifi-controller.fullname" . }}-udp
|
||||
{{- with .Values.service.annotations }}
|
||||
annotations:
|
||||
{{- toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
labels:
|
||||
{{- include "unifi-controller.labels" . | nindent 4 }}
|
||||
spec:
|
||||
type: {{ .Values.service.type }}
|
||||
ports:
|
||||
- port: 1900
|
||||
targetPort: 1900
|
||||
protocol: UDP
|
||||
@ -33,3 +61,4 @@ spec:
|
||||
name: syslog
|
||||
selector:
|
||||
{{- include "unifi-controller.selectorLabels" . | nindent 4 }}
|
||||
{{- end }}
|
||||
|
3
charts/unifi-controller/values.test.yaml
Normal file
3
charts/unifi-controller/values.test.yaml
Normal file
@ -0,0 +1,3 @@
|
||||
service:
|
||||
type: ClusterIP
|
||||
separateProtocols: true
|
@ -50,6 +50,8 @@ securityContext: {}
|
||||
|
||||
service:
|
||||
type: ClusterIP
|
||||
# Separate TCP and UDP ports into different services (required for MetalLB)
|
||||
separateProtocols: false
|
||||
annotations: {}
|
||||
|
||||
ingress:
|
||||
|
Loading…
Reference in New Issue
Block a user