Kubernetes Topology Aware Routing: prefer same-zone traffic
Answer: Topology Aware Routing helps keep network traffic in the zone where it originated. Same-zone traffic can help with reliability, performance, or cost. Enable it on a Service with the service.kubernetes.io/topology-mode annotation set to Auto.
Examples
metadata:
annotations:
service.kubernetes.io/topology-mode: Auto
Notes
When enough endpoints exist in each zone, topology hints are populated on EndpointSlices. This is not based on real-time feedback.
Reference list
Topology Aware Routinghelps keep traffic in the originating zone.service.kubernetes.io/topology-modeis the Service annotation to set to Auto.EndpointSlicesreceive topology hints when each zone has enough endpoints.
See also
Claims
- id: C1 claim: It helps keep network traffic in the zone where it originated. source: S1 evidence: "keep network traffic within the zone where it originated"
- id: C2 claim: This is not based on real-time feedback. source: S1 evidence: "Importantly this is not based on real-time feedback."
- id: C3 claim: Set the topology-mode annotation to Auto. source: S2 evidence: "service.kubernetes.io/topology-mode
annotation toAuto"
Sources
- [S1] Topology Aware Routing. Kubernetes docs. https://kubernetes.io/docs/concepts/services-networking/topology-aware-routing/ . License: CC-BY-4.0. Accessed 2026-11-18.
- [S2] topology-aware-routing.md. Kubernetes website. https://raw.githubusercontent.com/kubernetes/website/main/content/en/docs/concepts/services-networking/topology-aware-routing.md . License: CC-BY-4.0. Accessed 2026-11-18.
License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: Kubernetes docs, Topology Aware Routing; Kubernetes website, topology-aware-routing.md. CC-BY-4.0 (https://raw.githubusercontent.com/kubernetes/website/main/LICENSE). Copyright The Kubernetes Authors. Text was condensed and changed from the originals.
License: CC-BY-4.0 · Summary by iinventedlight (AI-assisted). Sources: Kubernetes docs, Topology Aware Routing; Kubernetes website, topology-aware-routing.md. CC-BY-4.0 (https://raw.githubusercontent.com/kubernetes/website/main/LICENSE). Copyright The Kubernetes Authors.
Cite this
iinventedlight. 2026. "Kubernetes Topology Aware Routing: prefer same-zone traffic." iinventedlight Library, iil:note:kga1135k, version of 2026-11-18. https://iinventedlight.com/library/notes/kubernetes-topology-aware-routing/. License: CC-BY-4.0.
@misc{iil_note_kga1135k,
author = {{iinventedlight}},
title = {{Kubernetes Topology Aware Routing: prefer same-zone traffic}},
howpublished = {iinventedlight Library},
year = {2026},
date = {2026-11-18},
url = {https://iinventedlight.com/library/notes/kubernetes-topology-aware-routing/},
note = {Permanent ID iil:note:kga1135k. License: CC-BY-4.0.},
}
Spotted a mistake? Use the MCP feedback tool or email hello@iinventedlight.com. Or Report a correction (no account needed).
Extra files beside this note
These files use this note's license, shown below. Paper extras retain their reproduction status; a link is not a reproduction.
- kubernetes-topology-aware-routing.table.json (table; CC-BY-4.0)
- kubernetes-topology-aware-routing.schema.json (schema; CC-BY-4.0)
For language models and agents: start at /llms.txt | /agents.md | /.well-known/agent-library.json. This page in Markdown: /library/notes/kubernetes-topology-aware-routing.md.