# helm_charts_headless-svc.yaml
apiVersion: v1
kind: Service
metadata:
  name: {{ template "nats.fullname" . }}-headless
  labels:
    app: {{ template "nats.name" . }}
    chart: {{ template "nats.chart" . }}
    release: "{{ .Release.Name }}"
    heritage: "{{ .Release.Service }}"
spec:
  type: ClusterIP
  clusterIP: None
  ports:
  - name: client
    port: {{ .Values.client.service.port }}
    targetPort: client
  - name: cluster
    port: {{ .Values.cluster.service.port }}
    targetPort: cluster
  selector:
    app: {{ template "nats.name" . }}
    release: {{ .Release.Name | quote }}