diff --git a/charts/gateway-helm/README.md b/charts/gateway-helm/README.md index 3caff48fde9..3f03d268edd 100644 --- a/charts/gateway-helm/README.md +++ b/charts/gateway-helm/README.md @@ -80,6 +80,7 @@ To uninstall the chart: | deployment.pod.annotations."prometheus.io/port" | string | `"19001"` | | | deployment.pod.annotations."prometheus.io/scrape" | string | `"true"` | | | deployment.pod.labels | object | `{}` | | +| deployment.pod.topologySpreadConstraints | object | `{}` | | | deployment.ports[0].name | string | `"grpc"` | | | deployment.ports[0].port | int | `18000` | | | deployment.ports[0].targetPort | int | `18000` | | diff --git a/charts/gateway-helm/templates/envoy-gateway-deployment.yaml b/charts/gateway-helm/templates/envoy-gateway-deployment.yaml index 5d0eb818308..9cde5d80e47 100644 --- a/charts/gateway-helm/templates/envoy-gateway-deployment.yaml +++ b/charts/gateway-helm/templates/envoy-gateway-deployment.yaml @@ -37,6 +37,10 @@ spec: affinity: {{- toYaml . | nindent 8 }} {{- end }} + {{- with .Values.deployment.pod.topologySpreadConstraints }} + topologySpreadConstraints: + {{- toYaml . | nindent 8 }} + {{- end }} containers: - args: - server diff --git a/charts/gateway-helm/values.tmpl.yaml b/charts/gateway-helm/values.tmpl.yaml index 21fd1e02cff..549c2c53107 100644 --- a/charts/gateway-helm/values.tmpl.yaml +++ b/charts/gateway-helm/values.tmpl.yaml @@ -50,6 +50,7 @@ deployment: prometheus.io/scrape: 'true' prometheus.io/port: '19001' labels: {} + topologySpreadConstraints: {} config: envoyGateway: @@ -72,4 +73,4 @@ certgen: ttlSecondsAfterFinished: 30 rbac: annotations: {} - labels: {} + labels: {} \ No newline at end of file diff --git a/site/content/en/latest/install/gateway-helm-api.md b/site/content/en/latest/install/gateway-helm-api.md index 7dbf2a58a34..474e1edacf1 100644 --- a/site/content/en/latest/install/gateway-helm-api.md +++ b/site/content/en/latest/install/gateway-helm-api.md @@ -44,6 +44,7 @@ The Helm chart for Envoy Gateway | deployment.pod.annotations."prometheus.io/port" | string | `"19001"` | | | deployment.pod.annotations."prometheus.io/scrape" | string | `"true"` | | | deployment.pod.labels | object | `{}` | | +| deployment.pod.topologySpreadConstraints | object | `{}` | | | deployment.ports[0].name | string | `"grpc"` | | | deployment.ports[0].port | int | `18000` | | | deployment.ports[0].targetPort | int | `18000` | | diff --git a/site/content/zh/latest/install/gateway-helm-api.md b/site/content/zh/latest/install/gateway-helm-api.md index 7dbf2a58a34..474e1edacf1 100644 --- a/site/content/zh/latest/install/gateway-helm-api.md +++ b/site/content/zh/latest/install/gateway-helm-api.md @@ -44,6 +44,7 @@ The Helm chart for Envoy Gateway | deployment.pod.annotations."prometheus.io/port" | string | `"19001"` | | | deployment.pod.annotations."prometheus.io/scrape" | string | `"true"` | | | deployment.pod.labels | object | `{}` | | +| deployment.pod.topologySpreadConstraints | object | `{}` | | | deployment.ports[0].name | string | `"grpc"` | | | deployment.ports[0].port | int | `18000` | | | deployment.ports[0].targetPort | int | `18000` | |