helm-charts/headscale/templates/service.yaml

28 lines
690 B
YAML
Raw Normal View History

2023-07-21 20:57:08 +02:00
apiVersion: v1
kind: Service
metadata:
name: {{ include "headscale.fullname" . }}
labels:
{{- include "headscale.labels" . | nindent 4 }}
{{- with .Values.service.annotations }}
annotations:
{{- toYaml . | nindent 4}}
{{- end }}
spec:
type: {{ .Values.service.type }}
ports:
- port: {{ .Values.service.port.http }}
targetPort: http
protocol: TCP
name: http
- port: {{ .Values.service.port.metrics }}
targetPort: metrics
protocol: TCP
name: metrics
- port: {{ .Values.service.port.grpc }}
targetPort: grpc
protocol: TCP
name: grpc
selector:
{{- include "headscale.selectorLabels" . | nindent 4 }}