From 6729de2577ba4ac4570fc47a99ad51a6d1b9508b Mon Sep 17 00:00:00 2001 From: NopeCharon <115794254+NopeCharon@users.noreply.github.com> Date: Thu, 29 Oct 2026 12:54:39 +0530 Subject: [PATCH] Document the topology-mode annotation Problem The "Enabling Topology Aware Routing" task tells users to annotate services with `service.kubernetes.io/topology-aware-hints=auto`. Since Kubernetes 1.27 this behavior is controlled with the `service.kubernetes.io/topology-mode=Auto` annotation, and the older annotation is deprecated. The safeguards and constraints links also point at the old Kubernetes "topology-aware-hints" page, which now redirects to "topology-aware-routing". Solution Recommend `service.kubernetes.io/topology-mode=Auto`, and note that `service.kubernetes.io/topology-aware-hints=auto` was used before Kubernetes 1.27. Point the safeguards and constraints links at the current Kubernetes Topology Aware Routing page. This is applied to the 2.13 through 2.19, edge and docs versions of the task. 2.12 is left unchanged because it only supports Kubernetes up to 1.24. Fixes #1976 Signed-off-by: NopeCharon <115794254+NopeCharon@users.noreply.github.com> --- .../2-edge/tasks/enabling-topology-aware-routing.md | 13 ++++++++----- .../2.13/tasks/enabling-topology-aware-routing.md | 13 ++++++++----- .../2.14/tasks/enabling-topology-aware-routing.md | 13 ++++++++----- .../2.15/tasks/enabling-topology-aware-routing.md | 13 ++++++++----- .../2.16/tasks/enabling-topology-aware-routing.md | 13 ++++++++----- .../2.17/tasks/enabling-topology-aware-routing.md | 13 ++++++++----- .../2.18/tasks/enabling-topology-aware-routing.md | 13 ++++++++----- .../2.19/tasks/enabling-topology-aware-routing.md | 13 ++++++++----- .../docs/tasks/enabling-topology-aware-routing.md | 13 ++++++++----- 9 files changed, 72 insertions(+), 45 deletions(-) diff --git a/linkerd.io/content/2-edge/tasks/enabling-topology-aware-routing.md b/linkerd.io/content/2-edge/tasks/enabling-topology-aware-routing.md index 0952af9722..e379c75f32 100644 --- a/linkerd.io/content/2-edge/tasks/enabling-topology-aware-routing.md +++ b/linkerd.io/content/2-edge/tasks/enabling-topology-aware-routing.md @@ -34,7 +34,9 @@ Linkerd: `"topology.kubernetes.io/zone` label. 4. Relevant Kubernetes services will need to be modified with the - `service.kubernetes.io/topology-aware-hints=auto` annotation. + `service.kubernetes.io/topology-mode=Auto` annotation. (Prior to Kubernetes + 1.27, this behavior was controlled using the + `service.kubernetes.io/topology-aware-hints=auto` annotation instead.) When Linkerd receives a set of endpoint slices and translates them to an address set, a copy of the `Hints.forZones` field is made from each endpoint slice if @@ -42,8 +44,9 @@ one is present. This field is only present if it's set by the endpoint slice controller, and there are several [safeguards][topology-aware-routing-safeguards] that Kubernetes checks before setting it. To have the endpoint slice controller set the `forZones` field users -will have to add the `service.kubernetes.io/topology-aware-hints=auto` -annotation to the service. +will have to add the `service.kubernetes.io/topology-mode=Auto` annotation (or +the `service.kubernetes.io/topology-aware-hints=auto` annotation, prior to +Kubernetes 1.27) to the service. After the endpoints have been translated into an address set and the endpoint translator's available endpoints have been updated, filtering is applied to @@ -87,6 +90,6 @@ time="2021-08-27T14:04:35Z" level=debug msg="Filtering through addresses that sh ``` [topology-aware-routing-safeguards]: - https://kubernetes.io/docs/concepts/services-networking/topology-aware-hints/#safeguards + https://kubernetes.io/docs/concepts/services-networking/topology-aware-routing/#safeguards [topology-aware-routing-constraints]: - https://kubernetes.io/docs/concepts/services-networking/topology-aware-hints/#constraints + https://kubernetes.io/docs/concepts/services-networking/topology-aware-routing/#constraints diff --git a/linkerd.io/content/2.13/tasks/enabling-topology-aware-routing.md b/linkerd.io/content/2.13/tasks/enabling-topology-aware-routing.md index 7218816048..f350da1532 100644 --- a/linkerd.io/content/2.13/tasks/enabling-topology-aware-routing.md +++ b/linkerd.io/content/2.13/tasks/enabling-topology-aware-routing.md @@ -23,7 +23,9 @@ Linkerd: `"topology.kubernetes.io/zone` label. 4. Relevant Kubernetes services will need to be modified with the - `service.kubernetes.io/topology-aware-hints=auto` annotation. + `service.kubernetes.io/topology-mode=Auto` annotation. (Prior to Kubernetes + 1.27, this behavior was controlled using the + `service.kubernetes.io/topology-aware-hints=auto` annotation instead.) When Linkerd receives a set of endpoint slices and translates them to an address set, a copy of the `Hints.forZones` field is made from each endpoint slice if @@ -31,8 +33,9 @@ one is present. This field is only present if it's set by the endpoint slice controller, and there are several [safeguards][topology-aware-routing-safeguards] that Kubernetes checks before setting it. To have the endpoint slice controller set the `forZones` field users -will have to add the `service.kubernetes.io/topology-aware-hints=auto` -annotation to the service. +will have to add the `service.kubernetes.io/topology-mode=Auto` annotation (or +the `service.kubernetes.io/topology-aware-hints=auto` annotation, prior to +Kubernetes 1.27) to the service. After the endpoints have been translated into an address set and the endpoint translator's available endpoints have been updated, filtering is applied to @@ -76,6 +79,6 @@ time="2021-08-27T14:04:35Z" level=debug msg="Filtering through addresses that sh ``` [topology-aware-routing-safeguards]: - https://kubernetes.io/docs/concepts/services-networking/topology-aware-hints/#safeguards + https://kubernetes.io/docs/concepts/services-networking/topology-aware-routing/#safeguards [topology-aware-routing-constraints]: - https://kubernetes.io/docs/concepts/services-networking/topology-aware-hints/#constraints + https://kubernetes.io/docs/concepts/services-networking/topology-aware-routing/#constraints diff --git a/linkerd.io/content/2.14/tasks/enabling-topology-aware-routing.md b/linkerd.io/content/2.14/tasks/enabling-topology-aware-routing.md index 0952af9722..e379c75f32 100644 --- a/linkerd.io/content/2.14/tasks/enabling-topology-aware-routing.md +++ b/linkerd.io/content/2.14/tasks/enabling-topology-aware-routing.md @@ -34,7 +34,9 @@ Linkerd: `"topology.kubernetes.io/zone` label. 4. Relevant Kubernetes services will need to be modified with the - `service.kubernetes.io/topology-aware-hints=auto` annotation. + `service.kubernetes.io/topology-mode=Auto` annotation. (Prior to Kubernetes + 1.27, this behavior was controlled using the + `service.kubernetes.io/topology-aware-hints=auto` annotation instead.) When Linkerd receives a set of endpoint slices and translates them to an address set, a copy of the `Hints.forZones` field is made from each endpoint slice if @@ -42,8 +44,9 @@ one is present. This field is only present if it's set by the endpoint slice controller, and there are several [safeguards][topology-aware-routing-safeguards] that Kubernetes checks before setting it. To have the endpoint slice controller set the `forZones` field users -will have to add the `service.kubernetes.io/topology-aware-hints=auto` -annotation to the service. +will have to add the `service.kubernetes.io/topology-mode=Auto` annotation (or +the `service.kubernetes.io/topology-aware-hints=auto` annotation, prior to +Kubernetes 1.27) to the service. After the endpoints have been translated into an address set and the endpoint translator's available endpoints have been updated, filtering is applied to @@ -87,6 +90,6 @@ time="2021-08-27T14:04:35Z" level=debug msg="Filtering through addresses that sh ``` [topology-aware-routing-safeguards]: - https://kubernetes.io/docs/concepts/services-networking/topology-aware-hints/#safeguards + https://kubernetes.io/docs/concepts/services-networking/topology-aware-routing/#safeguards [topology-aware-routing-constraints]: - https://kubernetes.io/docs/concepts/services-networking/topology-aware-hints/#constraints + https://kubernetes.io/docs/concepts/services-networking/topology-aware-routing/#constraints diff --git a/linkerd.io/content/2.15/tasks/enabling-topology-aware-routing.md b/linkerd.io/content/2.15/tasks/enabling-topology-aware-routing.md index 0952af9722..e379c75f32 100644 --- a/linkerd.io/content/2.15/tasks/enabling-topology-aware-routing.md +++ b/linkerd.io/content/2.15/tasks/enabling-topology-aware-routing.md @@ -34,7 +34,9 @@ Linkerd: `"topology.kubernetes.io/zone` label. 4. Relevant Kubernetes services will need to be modified with the - `service.kubernetes.io/topology-aware-hints=auto` annotation. + `service.kubernetes.io/topology-mode=Auto` annotation. (Prior to Kubernetes + 1.27, this behavior was controlled using the + `service.kubernetes.io/topology-aware-hints=auto` annotation instead.) When Linkerd receives a set of endpoint slices and translates them to an address set, a copy of the `Hints.forZones` field is made from each endpoint slice if @@ -42,8 +44,9 @@ one is present. This field is only present if it's set by the endpoint slice controller, and there are several [safeguards][topology-aware-routing-safeguards] that Kubernetes checks before setting it. To have the endpoint slice controller set the `forZones` field users -will have to add the `service.kubernetes.io/topology-aware-hints=auto` -annotation to the service. +will have to add the `service.kubernetes.io/topology-mode=Auto` annotation (or +the `service.kubernetes.io/topology-aware-hints=auto` annotation, prior to +Kubernetes 1.27) to the service. After the endpoints have been translated into an address set and the endpoint translator's available endpoints have been updated, filtering is applied to @@ -87,6 +90,6 @@ time="2021-08-27T14:04:35Z" level=debug msg="Filtering through addresses that sh ``` [topology-aware-routing-safeguards]: - https://kubernetes.io/docs/concepts/services-networking/topology-aware-hints/#safeguards + https://kubernetes.io/docs/concepts/services-networking/topology-aware-routing/#safeguards [topology-aware-routing-constraints]: - https://kubernetes.io/docs/concepts/services-networking/topology-aware-hints/#constraints + https://kubernetes.io/docs/concepts/services-networking/topology-aware-routing/#constraints diff --git a/linkerd.io/content/2.16/tasks/enabling-topology-aware-routing.md b/linkerd.io/content/2.16/tasks/enabling-topology-aware-routing.md index 0952af9722..e379c75f32 100644 --- a/linkerd.io/content/2.16/tasks/enabling-topology-aware-routing.md +++ b/linkerd.io/content/2.16/tasks/enabling-topology-aware-routing.md @@ -34,7 +34,9 @@ Linkerd: `"topology.kubernetes.io/zone` label. 4. Relevant Kubernetes services will need to be modified with the - `service.kubernetes.io/topology-aware-hints=auto` annotation. + `service.kubernetes.io/topology-mode=Auto` annotation. (Prior to Kubernetes + 1.27, this behavior was controlled using the + `service.kubernetes.io/topology-aware-hints=auto` annotation instead.) When Linkerd receives a set of endpoint slices and translates them to an address set, a copy of the `Hints.forZones` field is made from each endpoint slice if @@ -42,8 +44,9 @@ one is present. This field is only present if it's set by the endpoint slice controller, and there are several [safeguards][topology-aware-routing-safeguards] that Kubernetes checks before setting it. To have the endpoint slice controller set the `forZones` field users -will have to add the `service.kubernetes.io/topology-aware-hints=auto` -annotation to the service. +will have to add the `service.kubernetes.io/topology-mode=Auto` annotation (or +the `service.kubernetes.io/topology-aware-hints=auto` annotation, prior to +Kubernetes 1.27) to the service. After the endpoints have been translated into an address set and the endpoint translator's available endpoints have been updated, filtering is applied to @@ -87,6 +90,6 @@ time="2021-08-27T14:04:35Z" level=debug msg="Filtering through addresses that sh ``` [topology-aware-routing-safeguards]: - https://kubernetes.io/docs/concepts/services-networking/topology-aware-hints/#safeguards + https://kubernetes.io/docs/concepts/services-networking/topology-aware-routing/#safeguards [topology-aware-routing-constraints]: - https://kubernetes.io/docs/concepts/services-networking/topology-aware-hints/#constraints + https://kubernetes.io/docs/concepts/services-networking/topology-aware-routing/#constraints diff --git a/linkerd.io/content/2.17/tasks/enabling-topology-aware-routing.md b/linkerd.io/content/2.17/tasks/enabling-topology-aware-routing.md index 0952af9722..e379c75f32 100644 --- a/linkerd.io/content/2.17/tasks/enabling-topology-aware-routing.md +++ b/linkerd.io/content/2.17/tasks/enabling-topology-aware-routing.md @@ -34,7 +34,9 @@ Linkerd: `"topology.kubernetes.io/zone` label. 4. Relevant Kubernetes services will need to be modified with the - `service.kubernetes.io/topology-aware-hints=auto` annotation. + `service.kubernetes.io/topology-mode=Auto` annotation. (Prior to Kubernetes + 1.27, this behavior was controlled using the + `service.kubernetes.io/topology-aware-hints=auto` annotation instead.) When Linkerd receives a set of endpoint slices and translates them to an address set, a copy of the `Hints.forZones` field is made from each endpoint slice if @@ -42,8 +44,9 @@ one is present. This field is only present if it's set by the endpoint slice controller, and there are several [safeguards][topology-aware-routing-safeguards] that Kubernetes checks before setting it. To have the endpoint slice controller set the `forZones` field users -will have to add the `service.kubernetes.io/topology-aware-hints=auto` -annotation to the service. +will have to add the `service.kubernetes.io/topology-mode=Auto` annotation (or +the `service.kubernetes.io/topology-aware-hints=auto` annotation, prior to +Kubernetes 1.27) to the service. After the endpoints have been translated into an address set and the endpoint translator's available endpoints have been updated, filtering is applied to @@ -87,6 +90,6 @@ time="2021-08-27T14:04:35Z" level=debug msg="Filtering through addresses that sh ``` [topology-aware-routing-safeguards]: - https://kubernetes.io/docs/concepts/services-networking/topology-aware-hints/#safeguards + https://kubernetes.io/docs/concepts/services-networking/topology-aware-routing/#safeguards [topology-aware-routing-constraints]: - https://kubernetes.io/docs/concepts/services-networking/topology-aware-hints/#constraints + https://kubernetes.io/docs/concepts/services-networking/topology-aware-routing/#constraints diff --git a/linkerd.io/content/2.18/tasks/enabling-topology-aware-routing.md b/linkerd.io/content/2.18/tasks/enabling-topology-aware-routing.md index 0952af9722..e379c75f32 100644 --- a/linkerd.io/content/2.18/tasks/enabling-topology-aware-routing.md +++ b/linkerd.io/content/2.18/tasks/enabling-topology-aware-routing.md @@ -34,7 +34,9 @@ Linkerd: `"topology.kubernetes.io/zone` label. 4. Relevant Kubernetes services will need to be modified with the - `service.kubernetes.io/topology-aware-hints=auto` annotation. + `service.kubernetes.io/topology-mode=Auto` annotation. (Prior to Kubernetes + 1.27, this behavior was controlled using the + `service.kubernetes.io/topology-aware-hints=auto` annotation instead.) When Linkerd receives a set of endpoint slices and translates them to an address set, a copy of the `Hints.forZones` field is made from each endpoint slice if @@ -42,8 +44,9 @@ one is present. This field is only present if it's set by the endpoint slice controller, and there are several [safeguards][topology-aware-routing-safeguards] that Kubernetes checks before setting it. To have the endpoint slice controller set the `forZones` field users -will have to add the `service.kubernetes.io/topology-aware-hints=auto` -annotation to the service. +will have to add the `service.kubernetes.io/topology-mode=Auto` annotation (or +the `service.kubernetes.io/topology-aware-hints=auto` annotation, prior to +Kubernetes 1.27) to the service. After the endpoints have been translated into an address set and the endpoint translator's available endpoints have been updated, filtering is applied to @@ -87,6 +90,6 @@ time="2021-08-27T14:04:35Z" level=debug msg="Filtering through addresses that sh ``` [topology-aware-routing-safeguards]: - https://kubernetes.io/docs/concepts/services-networking/topology-aware-hints/#safeguards + https://kubernetes.io/docs/concepts/services-networking/topology-aware-routing/#safeguards [topology-aware-routing-constraints]: - https://kubernetes.io/docs/concepts/services-networking/topology-aware-hints/#constraints + https://kubernetes.io/docs/concepts/services-networking/topology-aware-routing/#constraints diff --git a/linkerd.io/content/2.19/tasks/enabling-topology-aware-routing.md b/linkerd.io/content/2.19/tasks/enabling-topology-aware-routing.md index 0952af9722..e379c75f32 100644 --- a/linkerd.io/content/2.19/tasks/enabling-topology-aware-routing.md +++ b/linkerd.io/content/2.19/tasks/enabling-topology-aware-routing.md @@ -34,7 +34,9 @@ Linkerd: `"topology.kubernetes.io/zone` label. 4. Relevant Kubernetes services will need to be modified with the - `service.kubernetes.io/topology-aware-hints=auto` annotation. + `service.kubernetes.io/topology-mode=Auto` annotation. (Prior to Kubernetes + 1.27, this behavior was controlled using the + `service.kubernetes.io/topology-aware-hints=auto` annotation instead.) When Linkerd receives a set of endpoint slices and translates them to an address set, a copy of the `Hints.forZones` field is made from each endpoint slice if @@ -42,8 +44,9 @@ one is present. This field is only present if it's set by the endpoint slice controller, and there are several [safeguards][topology-aware-routing-safeguards] that Kubernetes checks before setting it. To have the endpoint slice controller set the `forZones` field users -will have to add the `service.kubernetes.io/topology-aware-hints=auto` -annotation to the service. +will have to add the `service.kubernetes.io/topology-mode=Auto` annotation (or +the `service.kubernetes.io/topology-aware-hints=auto` annotation, prior to +Kubernetes 1.27) to the service. After the endpoints have been translated into an address set and the endpoint translator's available endpoints have been updated, filtering is applied to @@ -87,6 +90,6 @@ time="2021-08-27T14:04:35Z" level=debug msg="Filtering through addresses that sh ``` [topology-aware-routing-safeguards]: - https://kubernetes.io/docs/concepts/services-networking/topology-aware-hints/#safeguards + https://kubernetes.io/docs/concepts/services-networking/topology-aware-routing/#safeguards [topology-aware-routing-constraints]: - https://kubernetes.io/docs/concepts/services-networking/topology-aware-hints/#constraints + https://kubernetes.io/docs/concepts/services-networking/topology-aware-routing/#constraints diff --git a/linkerd.io/content/docs/tasks/enabling-topology-aware-routing.md b/linkerd.io/content/docs/tasks/enabling-topology-aware-routing.md index 0952af9722..e379c75f32 100644 --- a/linkerd.io/content/docs/tasks/enabling-topology-aware-routing.md +++ b/linkerd.io/content/docs/tasks/enabling-topology-aware-routing.md @@ -34,7 +34,9 @@ Linkerd: `"topology.kubernetes.io/zone` label. 4. Relevant Kubernetes services will need to be modified with the - `service.kubernetes.io/topology-aware-hints=auto` annotation. + `service.kubernetes.io/topology-mode=Auto` annotation. (Prior to Kubernetes + 1.27, this behavior was controlled using the + `service.kubernetes.io/topology-aware-hints=auto` annotation instead.) When Linkerd receives a set of endpoint slices and translates them to an address set, a copy of the `Hints.forZones` field is made from each endpoint slice if @@ -42,8 +44,9 @@ one is present. This field is only present if it's set by the endpoint slice controller, and there are several [safeguards][topology-aware-routing-safeguards] that Kubernetes checks before setting it. To have the endpoint slice controller set the `forZones` field users -will have to add the `service.kubernetes.io/topology-aware-hints=auto` -annotation to the service. +will have to add the `service.kubernetes.io/topology-mode=Auto` annotation (or +the `service.kubernetes.io/topology-aware-hints=auto` annotation, prior to +Kubernetes 1.27) to the service. After the endpoints have been translated into an address set and the endpoint translator's available endpoints have been updated, filtering is applied to @@ -87,6 +90,6 @@ time="2021-08-27T14:04:35Z" level=debug msg="Filtering through addresses that sh ``` [topology-aware-routing-safeguards]: - https://kubernetes.io/docs/concepts/services-networking/topology-aware-hints/#safeguards + https://kubernetes.io/docs/concepts/services-networking/topology-aware-routing/#safeguards [topology-aware-routing-constraints]: - https://kubernetes.io/docs/concepts/services-networking/topology-aware-hints/#constraints + https://kubernetes.io/docs/concepts/services-networking/topology-aware-routing/#constraints