blob: 385cdeabcad453fe5d15059aec435261a51bfd91 [file] [log] [blame]
kj9bf27312018-03-19 15:07:44 +02001apiVersion: v1
2kind: Service
3metadata:
Keren Joseph5689d5f2018-04-22 15:22:46 +03004 name: {{ include "common.servicename" . }}
kj9bf27312018-03-19 15:07:44 +02005 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 .Values.nodePortPrefix }}{{ .Values.service.nodePort }}
BorislavG2d4426e2018-05-22 11:31:39 +000017 name: {{ .Values.service.portName }}
kj9bf27312018-03-19 15:07:44 +020018 {{- else -}}
19 - port: {{ .Values.service.internalPort }}
BorislavG2d4426e2018-05-22 11:31:39 +000020 name: {{ .Values.service.portName }}
kj9bf27312018-03-19 15:07:44 +020021 {{- end}}
22 selector:
23 app: {{ include "common.name" . }}
Arul.Nambi89c02792018-06-20 11:40:17 -040024 release: {{ .Release.Name }}