2018-09-07 09:50:03 +02:00
|
|
|
apiVersion: v1
|
|
|
|
kind: Service
|
|
|
|
metadata:
|
|
|
|
name: {{ template "molgenis.fullname" . }}
|
|
|
|
labels:
|
|
|
|
app: {{ template "molgenis.name" . }}
|
|
|
|
chart: {{ template "molgenis.chart" . }}
|
|
|
|
release: {{ .Release.Name }}
|
|
|
|
heritage: {{ .Release.Service }}
|
|
|
|
spec:
|
|
|
|
type: {{ .Values.service.type }}
|
2018-09-26 16:04:22 +02:00
|
|
|
{{- if .Values.service.firewall.enabled }}
|
|
|
|
loadBalancerSourceRanges:
|
2018-09-26 16:52:06 +02:00
|
|
|
{{- if .Values.service.firewall.kind eq "umcg" }}
|
2018-09-26 16:04:22 +02:00
|
|
|
{{- range $index, $rule := .Values.service.firewall.umcg.rules }}
|
|
|
|
- {{ $rule }}
|
|
|
|
{{- end }}
|
2018-09-26 16:52:06 +02:00
|
|
|
{{- else }}
|
2018-09-26 16:04:22 +02:00
|
|
|
{{- range $index, $rule := .Values.service.firewall.cluster.rules }}
|
|
|
|
- {{ $rule }}
|
|
|
|
{{- end }}
|
|
|
|
{{- end }}
|
|
|
|
{{- end }}
|
2018-09-07 09:50:03 +02:00
|
|
|
ports:
|
|
|
|
- name: molgenis
|
|
|
|
port: {{ .Values.service.port }}
|
|
|
|
selector:
|
|
|
|
app: {{ template "molgenis.name" . }}
|
|
|
|
release: {{ .Release.Name }}
|