diff --git a/multicluster/charts/linkerd-multicluster/README.md b/multicluster/charts/linkerd-multicluster/README.md index bf8707ae8..e59e81725 100644 --- a/multicluster/charts/linkerd-multicluster/README.md +++ b/multicluster/charts/linkerd-multicluster/README.md @@ -77,6 +77,7 @@ Kubernetes: `>=1.21.0-0` | gateway.deploymentAnnotations | object | `{}` | Annotations to add to the gateway deployment | | gateway.enabled | bool | `true` | If the gateway component should be installed | | gateway.loadBalancerIP | string | `""` | Set loadBalancerIP on gateway service | +| gateway.loadBalancerSourceRanges | list | `[]` | Set loadBalancerSourceRanges on gateway service | | gateway.name | string | `"linkerd-gateway"` | The name of the gateway that will be installed | | gateway.pauseImage | string | `"gcr.io/google_containers/pause:3.2"` | The pause container to use | | gateway.port | int | `4143` | The port on which all the gateway will accept incoming traffic | diff --git a/multicluster/charts/linkerd-multicluster/templates/gateway.yaml b/multicluster/charts/linkerd-multicluster/templates/gateway.yaml index e72a6404a..b538e1577 100644 --- a/multicluster/charts/linkerd-multicluster/templates/gateway.yaml +++ b/multicluster/charts/linkerd-multicluster/templates/gateway.yaml @@ -115,6 +115,12 @@ spec: {{- if .Values.gateway.loadBalancerIP }} loadBalancerIP: {{ .Values.gateway.loadBalancerIP }} {{- end }} +{{- if .Values.gateway.loadBalancerSourceRanges }} + loadBalancerSourceRanges: + {{- range .Values.gateway.loadBalancerSourceRanges }} + - {{ . }} + {{- end }} +{{- end }} --- kind: ServiceAccount apiVersion: v1 diff --git a/multicluster/charts/linkerd-multicluster/values.yaml b/multicluster/charts/linkerd-multicluster/values.yaml index c01678ef8..44292131d 100644 --- a/multicluster/charts/linkerd-multicluster/values.yaml +++ b/multicluster/charts/linkerd-multicluster/values.yaml @@ -27,6 +27,8 @@ gateway: deploymentAnnotations: {} # -- Set loadBalancerIP on gateway service loadBalancerIP: "" + # -- Set loadBalancerSourceRanges on gateway service + loadBalancerSourceRanges: [] # -- Set terminationGracePeriodSeconds on gateway deployment terminationGracePeriodSeconds: ""