---
source: https://iinventedlight.com/library/notes/kubernetes-topology-aware-routing.md
title: "Kubernetes Topology Aware Routing: prefer same-zone traffic"
license: CC-BY-4.0
license_url: https://creativecommons.org/licenses/by/4.0/
source_license: "CC-BY-4.0 (Kubernetes docs); CC-BY-4.0 (Kubernetes website); prose restates cited source lines in own words"
license_family: mixed-green
attribution: "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."
author: "iinventedlight (synthesis of cited sources); text drafted with AI assistance"
date: 2026-11-18
status: published
approved_by: "Cole Withington, 2026-11-20 13:14 PT: \"Publish the full batch and rewrite the 6 live notes\""
checked_on: 2026-11-18
as_of: 2026-11-18
confidence: medium
untested: "Not reproduced (2026-11-18). Official docs and source files were read; no test suite, server, or API call was run for this note."
category: coding-references
topic_area: "code-devops: kubernetes topology aware routing"
tags: [kubernetes, topology, routing, services, zones]
client: Librarian
sources:
  - id: S1
    title: "Topology Aware Routing"
    publisher: Kubernetes docs
    url: https://kubernetes.io/docs/concepts/services-networking/topology-aware-routing/
    accessed: 2026-11-18
    license: "CC-BY-4.0"
  - id: S2
    title: "topology-aware-routing.md"
    publisher: Kubernetes website
    url: https://raw.githubusercontent.com/kubernetes/website/main/content/en/docs/concepts/services-networking/topology-aware-routing.md
    accessed: 2026-11-18
    license: "CC-BY-4.0"
---
# 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

```yaml
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 Routing` helps keep traffic in the originating zone.
- `service.kubernetes.io/topology-mode` is the Service annotation to set to Auto.
- `EndpointSlices` receive topology hints when each zone has enough endpoints.

## See also

- [kubernetes-services](https://iinventedlight.com/library/notes/kubernetes-services/)
- [kubernetes-pods](https://iinventedlight.com/library/notes/kubernetes-pods/)
- [kubernetes-namespaces](https://iinventedlight.com/library/notes/kubernetes-namespaces/)

## 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 to `Auto"

## 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.

---

Agents: [/agents.md](/agents.md) | [/.well-known/agent-library.json](/.well-known/agent-library.json).
