Skip to content

Commit c977411

Browse files
committed
opt in control plane zone aware load balancing
Signed-off-by: Huabing (Robin) Zhao <[email protected]>
1 parent 54efa34 commit c977411

File tree

7 files changed

+10
-0
lines changed

7 files changed

+10
-0
lines changed

charts/gateway-helm/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -111,4 +111,5 @@ To uninstall the chart:
111111
| kubernetesClusterDomain | string | `"cluster.local"` | |
112112
| podDisruptionBudget.minAvailable | int | `0` | |
113113
| service.annotations | object | `{}` | |
114+
| service.trafficDistribution | string | `""` | |
114115

charts/gateway-helm/templates/envoy-gateway-service.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,6 @@ spec:
1616
{{- include "eg.selectorLabels" . | nindent 4 }}
1717
ports:
1818
{{- .Values.deployment.ports | toYaml | nindent 2 -}}
19+
{{- with .Values.service.trafficDistribution }}
20+
trafficDistribution: {{ . }}
21+
{{- end }}

charts/gateway-helm/values.tmpl.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ deployment:
7272
nodeSelector: {}
7373

7474
service:
75+
# If set to PreferClose, the Envoy fleet will prioritize connecting to the Envoy Gateway pods that are topologically closest to them.
76+
trafficDistribution: ""
7577
annotations: {}
7678

7779
hpa:

release-notes/current.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ new features: |
2525
Added support for BackendTLSPolicy to target ServiceImport
2626
Added support for per-host circuit breaker thresholds
2727
Added support for egctl Websocket in addation to SPDY
28+
Added a configuration option in the Helm chart to set the TrafficDistribution field in the Envoy Gateway Service
2829
2930
bug fixes: |
3031
Fix traffic splitting when filters are attached to the backendRef.

site/content/en/latest/install/gateway-helm-api.md

+1
Original file line numberDiff line numberDiff line change
@@ -75,4 +75,5 @@ The Helm chart for Envoy Gateway
7575
| kubernetesClusterDomain | string | `"cluster.local"` | |
7676
| podDisruptionBudget.minAvailable | int | `0` | |
7777
| service.annotations | object | `{}` | |
78+
| service.trafficDistribution | string | `""` | |
7879

test/helm/gateway-helm/service-annotations.in.yaml test/helm/gateway-helm/service-customization.in.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@ global:
44
image: "docker.io/envoyproxy/gateway-dev:latest"
55
pullPolicy: Always
66
service:
7+
trafficDistribution: PreferClose
78
annotations:
89
this: that

test/helm/gateway-helm/service-annotations.out.yaml test/helm/gateway-helm/service-customization.out.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -355,6 +355,7 @@ spec:
355355
- name: metrics
356356
port: 19001
357357
targetPort: 19001
358+
trafficDistribution: PreferClose
358359
---
359360
# Source: gateway-helm/templates/envoy-gateway-deployment.yaml
360361
apiVersion: apps/v1

0 commit comments

Comments
 (0)