Files
deprecated-helm-charts/stable/dex/templates/service.yaml
T
Chris Heppell 38a56f7839 [stable/dex]: Add support to configure nodePort (#6956)
* add support for configuring dex nodePort values

* bump dex chart patch version

* Update Chart.yaml

* add comment showing example for configuring nodePort value
2018-08-27 20:41:35 -07:00

33 lines
881 B
YAML

apiVersion: v1
kind: Service
metadata:
name: {{ template "dex.fullname" . }}
labels:
app: {{ template "dex.name" . }}
chart: {{ template "dex.chart" . }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
{{- if .Values.service.annotations }}
annotations:
{{ toYaml .Values.service.annotations | indent 4 }}
{{- end }}
spec:
type: {{ .Values.service.type}}
sessionAffinity: None
ports:
{{- range .Values.ports }}
- name: {{ .name }}
port: {{ .containerPort }}
targetPort: {{ .containerPort}}
{{- if and (eq "NodePort" $.Values.service.type) (hasKey . "nodePort") }}
nodePort: {{ .nodePort }}
{{- end}}
{{- end}}
{{- if hasKey .Values.service "externalIPs" }}
externalIPs:
{{ toYaml .Values.service.externalIPs | indent 4 }}
{{- end }}
selector:
app: {{ template "dex.name" . }}
release: {{ .Release.Name | quote }}