# helm_charts_keeper-headless-service.yaml
apiVersion: v1
kind: Service
metadata:
  name: {{ template "stolon.fullname" . }}-keeper-headless
  labels:
    app: {{ template "stolon.name" . }}
    chart: {{ template "stolon.chart" . }}
    release: {{ .Release.Name }}
    heritage: {{ .Release.Service }}
  annotations:
{{- with .Values.keeper.service.annotations }}
{{ toYaml . | indent 4 }}
{{- end }}
spec:
  clusterIP: None
  ports:
  {{- range $key, $value := .Values.keeper.service.ports }}
    - name: {{ $key }}
{{ toYaml $value | indent 6 }}
{{- end }}
  selector:
    app: {{ template "stolon.name" . }}
    release: {{ .Release.Name }}
    component: stolon-keeper