blob: 9ba61fa00cf644917b6e0f54779f70158542fcef [file] [log] [blame]
kj6a8ce802018-03-19 15:07:44 +02001apiVersion: v1
2kind: Service
3metadata:
BorislavG20dcf412018-05-13 17:11:01 +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 }}
BorislavG20dcf412018-05-13 17:11:01 +000017 name: {{ .Values.service.portName }}
kj6a8ce802018-03-19 15:07:44 +020018 - port: {{ .Values.service.internalPort2 }}
19 nodePort: {{ .Values.global.nodePortPrefix | default .Values.nodePortPrefix }}{{ .Values.service.nodePort2 }}
BorislavG20dcf412018-05-13 17:11:01 +000020 name: {{ .Values.service.portName2 }}
kj6a8ce802018-03-19 15:07:44 +020021 {{- else -}}
22 - port: {{ .Values.service.internalPort }}
BorislavG20dcf412018-05-13 17:11:01 +000023 name: {{ .Values.service.portName }}
kj6a8ce802018-03-19 15:07:44 +020024 - port: {{ .Values.service.internalPort2 }}
BorislavG20dcf412018-05-13 17:11:01 +000025 name: {{ .Values.service.portName2 }}
kj6a8ce802018-03-19 15:07:44 +020026 {{- end}}
27 selector:
28 app: {{ include "common.name" . }}
29 release: {{ .Release.Name }}
30 clusterIP: None