blob: c786a5a894c1d81c153a10d9128b7ac941f657e4 [file] [log] [blame]
Geora Barsky417b3b42018-08-17 13:31:36 -04001apiVersion: v1
2kind: Service
3metadata:
4 name: {{ include "common.servicename" . }}
5 namespace: {{ include "common.namespace" . }}
6 labels:
7 app: {{ include "common.name" . }}
8 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
Krzysztof Opasiak137d7cc2020-01-24 23:49:11 +01009 release: {{ include "common.release" . }}
Geora Barsky417b3b42018-08-17 13:31:36 -040010 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 }}
17 name: {{ .Values.service.portName }}
18 {{- else -}}
19 - port: {{ .Values.service.internalPort }}
20 name: {{ .Values.service.portName }}
21 {{- end}}
22 selector:
23 app: {{ include "common.name" . }}
Krzysztof Opasiak137d7cc2020-01-24 23:49:11 +010024 release: {{ include "common.release" . }}