blob: 31475a1c7615169985bb84adcddd12ff6b1c0595 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
apiVersion: v1
kind: Service
metadata:
name: {{ template "common.fullname" . }}-headless
labels:
app: {{ template "common.name" . }}
chart: {{ .Chart.Name }}
release: {{ include "common.release" . }}
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: {{ include "common.release" . }}
|