blob: e342a9a688f710ae5556141f4575890a7c0c4265 [file] [log] [blame]
kj6a8ce802018-03-19 15:07:44 +02001apiVersion: v1
2kind: Service
3metadata:
Keren Joseph29f11ab2018-04-22 15:22:46 +03004 name: {{ include "common.servicename" . }}
kj6a8ce802018-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 }}
BorislavGdd207052018-05-22 11:31:39 +000017 name: {{ .Values.service.portName }}
kj6a8ce802018-03-19 15:07:44 +020018 {{- else -}}
19 - port: {{ .Values.service.internalPort }}
BorislavGdd207052018-05-22 11:31:39 +000020 name: {{ .Values.service.portName }}
kj6a8ce802018-03-19 15:07:44 +020021 {{- end}}
22 selector:
23 app: {{ include "common.name" . }}
24 release: {{ .Release.Name }}
25 clusterIP: None