blob: 54ee8b670d19c41907eedfc80c0d49a311f76045 [file] [log] [blame]
kj9bf27312018-03-19 15:07:44 +02001apiVersion: v1
2kind: Service
3metadata:
BorislavG1ffbd992018-04-24 07:56:27 +00004 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 }}
BorislavG1ffbd992018-04-24 07:56:27 +000017 name: {{ .Values.service.portName }}
kj9bf27312018-03-19 15:07:44 +020018 {{- else -}}
19 - port: {{ .Values.service.internalPort }}
BorislavG1ffbd992018-04-24 07:56:27 +000020 name: {{ .Values.service.portName }}
kj9bf27312018-03-19 15:07:44 +020021 {{- end}}
22 selector:
23 app: {{ include "common.fullname" . }}
24 release: {{ .Release.Name }}
25 clusterIP: None