k8s-charts/charts/unifi-controller/templates/service.yaml

36 lines
785 B
YAML

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
- port: 1900
targetPort: 1900
protocol: UDP
name: l2discover
- port: 5514
targetPort: 5514
protocol: UDP
name: syslog
selector:
{{- include "unifi-controller.selectorLabels" . | nindent 4 }}