blob: 70ebf6013e968afeb8f5019a14f94b6353260929 [file] [log] [blame]
apiVersion: v1
kind: Service
metadata:
name: {{ template "common.fullname" . }}-headless
labels:
app: {{ template "common.name" . }}
chart: {{ .Chart.Name }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
spec:
clusterIP: None
ports:
{{- range $key, $port := .Values.ports }}
- name: {{ $key }}
port: {{ $port.containerPort }}
targetPort: {{ $port.name }}
protocol: {{ $port.protocol }}
{{- end }}
selector:
app: {{ template "common.name" . }}
release: {{ .Release.Name }}