diff --git a/charts/dremio/templates/dremio-service-client.yaml b/charts/dremio/templates/dremio-service-client.yaml index 49233892..8149368e 100644 --- a/charts/dremio/templates/dremio-service-client.yaml +++ b/charts/dremio/templates/dremio-service-client.yaml @@ -4,6 +4,15 @@ metadata: name: dremio-client labels: app: dremio-client + {{- if .Values.internalLoadBalancer }} + {{- if eq .Values.internalLoadBalancer true }} + annotations: + service.beta.kubernetes.io/azure-load-balancer-internal: "true" + cloud.google.com/load-balancer-type: "Internal" + service.beta.kubernetes.io/aws-load-balancer-internal: 0.0.0.0/0 + service.beta.kubernetes.io/openstack-internal-load-balancer: "true" + {{- end }} + {{- end }} spec: ports: - port: {{ .Values.coordinator.client.port | default 31010 }} diff --git a/charts/dremio/values.yaml b/charts/dremio/values.yaml index d362e278..0aaf26b7 100644 --- a/charts/dremio/values.yaml +++ b/charts/dremio/values.yaml @@ -27,6 +27,12 @@ serviceType: LoadBalancer # you have one or more coordinators, enable it #sessionAffinity: ClientIP +# Enable the following flag if you wish to route traffic through a shared VPC +# for the LoadBalancer's external IP. +# The chart is setup for internal IP support for AKS, EKS, GKE. +# For more information, see https://kubernetes.io/docs/concepts/services-networking/service/#internal-load-balancer +#internalLoadBalancer: true + # To use custom storage class, uncomment and provide the value here. # Otherwise the default storage class configured for your K8S cluster is used. #storageClass: managed-premium