helm-charts/headscale/templates/service.yaml
2023-07-24 21:51:14 +02:00

27 lines
690 B
YAML

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