Skip to content

🔧 gateway: run two envoy-gateway controller replicas with PDB and spread - #1199

Closed
Tobias-Pe wants to merge 1 commit into
mainfrom
tpeslalz/envoy-gateway-controller-ha
Closed

Tobias-Pe wants to merge 1 commit into
mainfrom
tpeslalz/envoy-gateway-controller-ha

Conversation

@Tobias-Pe

Copy link
Copy Markdown
Contributor

The vendored Envoy Gateway manifest deploys Deployment/envoy-gateway with a single replica and no PodDisruptionBudget or scheduling spread, so any API lease timeout or voluntary node drain interrupts control-plane reconciliation until the single pod restarts.

Patch Deployment/envoy-gateway in process_envoy_gateway_manifest.py to run 2 replicas (leader election is already enabled by default) with soft hostname anti-affinity and zone spread (ScheduleAnyway, so small or single-node clusters still schedule cleanly), regenerate envoy-gateway-generated.yaml, and add a matching PodDisruptionBudget (maxUnavailable: 1) in gateway.yaml.

The vendored Envoy Gateway manifest deploys Deployment/envoy-gateway with a single replica and no PodDisruptionBudget or scheduling spread, so any API lease timeout or voluntary node drain interrupts control-plane reconciliation until the single pod restarts.

Patch Deployment/envoy-gateway in process_envoy_gateway_manifest.py to run 2 replicas (leader election is already enabled by default) with soft hostname anti-affinity and zone spread (ScheduleAnyway, so small or single-node clusters still schedule cleanly), regenerate envoy-gateway-generated.yaml, and add a matching PodDisruptionBudget (maxUnavailable: 1) in gateway.yaml.
@Tobias-Pe Tobias-Pe self-assigned this Nov 23, 2026
@Tobias-Pe

Copy link
Copy Markdown
Contributor Author

Closing: Envoy Gateway controller restarts do not affect live data-plane traffic (Envoy keeps serving cached xDS), so running a single upstream-default replica avoids carrying a custom manifest patch on top of install.yaml.

@Tobias-Pe Tobias-Pe closed this Nov 23, 2026
@Tobias-Pe
Tobias-Pe deleted the tpeslalz/envoy-gateway-controller-ha branch November 23, 2026 14:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant