blob: 6ac3066ecf1d3901375de920df375c39585395c4 [file] [log] [blame]
Nelson,Thomas(tn1381)(arthurdent3)4807fdf2018-09-19 16:52:36 -04001apiVersion: v1
2kind: Service
3metadata:
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 }}
14spec:
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 }}