Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow setting service topology aware routing mode #41

Merged
merged 1 commit into from
Jan 19, 2024

Conversation

domgoodwin
Copy link
Contributor

@domgoodwin domgoodwin commented Jan 19, 2024

Add a way to configure service topology aware routing, this means we can have Kubernetes make traffic prefer to stay in the same AZ.

This is configured with an environment variable: setting ENABLE_SERVICE_TOPOLOGY_MODE="true" will mean services get the annotation service.kubernetes.io/topology-mode=Auto enabling the feature.

I've also provided a way to opt out at the ExternalService level so some endpoints can opt themselves out.

The way topology aware routing works means if pods aren't split across zone topologies the endpoint will be as before.

Docs on topology aware routing: https://kubernetes.io/docs/concepts/services-networking/topology-aware-routing/

@domgoodwin domgoodwin force-pushed the egress-operator-service-topology-aware-routing branch from a71b276 to 6f7173b Compare January 19, 2024 14:13
@domgoodwin domgoodwin marked this pull request as ready for review January 19, 2024 14:15
@domgoodwin domgoodwin merged commit 77b65bc into master Jan 19, 2024
1 check passed
@domgoodwin domgoodwin deleted the egress-operator-service-topology-aware-routing branch January 19, 2024 15:05
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.

2 participants