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