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