apiVersion: v1
kind: Service
metadata:
  name: {{ include "pipelines.services.name" . }}-headless
  labels:
    {{- include "pipelines.labels" . | nindent 4 }}
spec:
  type: ClusterIP
  clusterIP: None
  ports:
    - port: {{ .Values.pipelines.api.service.port }}
      targetPort: 30000
      protocol: TCP
      name: api
    - port: {{ .Values.pipelines.www.service.port }}
      targetPort: 30001
      protocol: TCP
      name: www
  selector:
    {{- include "pipelines.selectorLabels" . | nindent 4 }}
    component: {{ include "pipelines.services.name" . }}
