Skip to content

docs: document the topology-mode annotation for topology aware routing - #2165

Open
NopeCharon wants to merge 1 commit into
linkerd:mainfrom
NopeCharon:docs-topology-mode-annotation
Open

NopeCharon wants to merge 1 commit into
linkerd:mainfrom
NopeCharon:docs-topology-mode-annotation

Conversation

@NopeCharon

Copy link
Copy Markdown

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 service.kubernetes.io/topology-mode=Auto, and the older annotation is deprecated (Kubernetes docs).

This PR:

  • recommends service.kubernetes.io/topology-mode=Auto, and notes that service.kubernetes.io/topology-aware-hints=auto was used before Kubernetes 1.27
  • points the safeguards and constraints links at the current Kubernetes Topology Aware Routing page instead of the old topology-aware-hints URL, which only redirects. The #safeguards and #constraints anchors exist on the new page.

I applied the change to the 2.13 through 2.19, edge and docs versions of the task. I left 2.12 unchanged because it only supports Kubernetes up to 1.24.

Testing: make lint passes, and a local hugo build renders the updated pages.

Fixes #1976

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 linkerd#1976

Signed-off-by: NopeCharon <115794254+NopeCharon@users.noreply.github.com>
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.

document the renaming of topology aware annotation as of k8s 1.27

1 participant