blob: 84548eda869a68f6154f84ef8a2c2bbb57ae12e6 [file] [log] [blame]
kj6a8ce802018-03-19 15:07:44 +02001apiVersion: v1
2kind: Service
3metadata:
4 name: {{ include "common.name" . }}
5 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 }}
17 name: {{ .Values.service.name }}
18 {{- else -}}
19 - port: {{ .Values.service.internalPort }}
20 name: {{ .Values.service.name }}
21 {{- end}}
22 selector:
23 app: {{ include "common.fullname" . }}
24 release: {{ .Release.Name }}
25 clusterIP: None