blob: f3a6dbbc5ec9f70f56a53f70703cf703be6520e1 [file] [log] [blame]
kj6a8ce802018-03-19 15:07:44 +02001apiVersion: v1
2kind: Service
3metadata:
BorislavGe7500682018-04-24 07:56:27 +00004 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 }}
BorislavGe7500682018-04-24 07:56:27 +000017 name: {{ .Values.service.portName }}
kj6a8ce802018-03-19 15:07:44 +020018 {{- else -}}
19 - port: {{ .Values.service.internalPort }}
BorislavGe7500682018-04-24 07:56:27 +000020 name: {{ .Values.service.portName }}
kj6a8ce802018-03-19 15:07:44 +020021 {{- end}}
22 selector:
Arul.Nambi1996ca02018-07-17 16:02:30 -040023 app: {{ include "common.name" . }}
kj6a8ce802018-03-19 15:07:44 +020024 release: {{ .Release.Name }}
25 clusterIP: None