mirror of
https://github.com/Thumbscrew/k8s-charts.git
synced 2025-07-07 21:22:44 +00:00
feat: unifi-controller chart (#8)
This commit is contained in:
64
charts/unifi-controller/templates/service.yaml
Normal file
64
charts/unifi-controller/templates/service.yaml
Normal file
@ -0,0 +1,64 @@
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: {{ include "unifi-controller.fullname" . }}
|
||||
{{- with .Values.service.annotations }}
|
||||
annotations:
|
||||
{{- toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
labels:
|
||||
{{- include "unifi-controller.labels" . | nindent 4 }}
|
||||
spec:
|
||||
type: {{ .Values.service.type }}
|
||||
ports:
|
||||
- port: 8080
|
||||
targetPort: 8080
|
||||
protocol: TCP
|
||||
name: http
|
||||
- port: 8443
|
||||
targetPort: 8443
|
||||
protocol: TCP
|
||||
name: https
|
||||
- port: 3478
|
||||
targetPort: 3478
|
||||
protocol: TCP
|
||||
name: stun
|
||||
{{- if .Values.service.combinedProtocols }}
|
||||
- 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.combinedProtocols false }}
|
||||
---
|
||||
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
|
||||
name: l2discover
|
||||
- port: 5514
|
||||
targetPort: 5514
|
||||
protocol: UDP
|
||||
name: syslog
|
||||
selector:
|
||||
{{- include "unifi-controller.selectorLabels" . | nindent 4 }}
|
||||
{{- end }}
|
Reference in New Issue
Block a user