feat: Added annotations and loadBalancerIP option in helm service.yaml (#13114)

* added annotations and loadBalancerIP option in helm service.yaml

* Update service.yaml

* Update values.yaml

* Update service.yaml
This commit is contained in:
Cheun Hong 2021-02-17 00:12:01 +08:00 committed by GitHub
parent 5aa38ef929
commit 94893ff280
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 0 deletions

View File

@ -23,6 +23,10 @@ metadata:
chart: {{ template "superset.chart" . }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
{{- with .Values.service.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
type: {{ .Values.service.type }}
ports:
@ -33,3 +37,6 @@ spec:
selector:
app: {{ template "superset.name" . }}
release: {{ .Release.Name }}
{{- if .Values.service.loadBalancerIP }}
loadBalancerIP: {{ .Values.service.loadBalancerIP }}
{{- end }}

View File

@ -97,6 +97,9 @@ image:
service:
type: ClusterIP
port: 8088
annotations: {}
# cloud.google.com/load-balancer-type: "Internal"
loadBalancerIP: null
ingress:
enabled: false