Nelson,Thomas(tn1381)(arthurdent3) | 4807fdf | 2018-09-19 16:52:36 -0400 | [diff] [blame] | 1 | apiVersion: v1 |
| 2 | kind: Service |
| 3 | metadata: |
| 4 | name: {{ template "common.fullname" . }}-headless |
| 5 | labels: |
| 6 | app: {{ template "common.name" . }} |
| 7 | chart: {{ .Chart.Name }} |
| 8 | release: {{ .Release.Name }} |
| 9 | heritage: {{ .Release.Service }} |
| 10 | spec: |
| 11 | clusterIP: None |
| 12 | ports: |
| 13 | {{- range $key, $port := .Values.ports }} |
| 14 | - name: {{ $key }} |
| 15 | port: {{ $port.containerPort }} |
| 16 | targetPort: {{ $port.name }} |
| 17 | protocol: {{ $port.protocol }} |
| 18 | {{- end }} |
| 19 | selector: |
| 20 | app: {{ template "common.name" . }} |
| 21 | release: {{ .Release.Name }} |