blob: 0a040bcab53cecbd165c8fbaca8b2babeaa7e2c9 [file] [log] [blame]
Mike Elliottd32d36e2018-02-12 15:54:03 -05001apiVersion: v1
2kind: Service
3metadata:
Mandeep Khindaa57d8dd2018-03-09 14:29:37 +00004 name: {{ include "common.fullname" . }}
Mike Elliottd32d36e2018-02-12 15:54:03 -05005 namespace: {{ include "common.namespace" . }}
6 labels:
7 app: {{ include "common.name" . }}
8 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
9 release: {{ .Release.Name }}
10 heritage: {{ .Release.Service }}
11spec:
12 type: {{ .Values.service.type }}
13 ports:
14 {{if eq .Values.service.type "NodePort" -}}
15 - port: {{ .Values.service.internalPort }}
16 nodePort: {{ .Values.global.nodePortPrefix | default "302" }}{{ .Values.service.externalPort }}
17 {{- else -}}
18 - port: {{ .Values.service.externalPort }}
19 targetPort: {{ .Values.service.internalPort }}
20 {{- end}}
21 name: {{ .Values.service.name }}
22 selector:
23 app: {{ include "common.name" . }}
24 release: {{ .Release.Name }}