From 94893ff280e1db3998cf71dffb7731a6a3689b33 Mon Sep 17 00:00:00 2001 From: Cheun Hong Date: Wed, 17 Feb 2021 00:12:01 +0800 Subject: [PATCH] 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 --- helm/superset/templates/service.yaml | 7 +++++++ helm/superset/values.yaml | 3 +++ 2 files changed, 10 insertions(+) diff --git a/helm/superset/templates/service.yaml b/helm/superset/templates/service.yaml index 76e335222a..0124ad2a9d 100644 --- a/helm/superset/templates/service.yaml +++ b/helm/superset/templates/service.yaml @@ -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 }} diff --git a/helm/superset/values.yaml b/helm/superset/values.yaml index e6681d8588..5991658ec0 100644 --- a/helm/superset/values.yaml +++ b/helm/superset/values.yaml @@ -97,6 +97,9 @@ image: service: type: ClusterIP port: 8088 + annotations: {} + # cloud.google.com/load-balancer-type: "Internal" + loadBalancerIP: null ingress: enabled: false