website/content/en/docs/tasks/administer-cluster/enabling-topology-aware-hin...

1.4 KiB

reviewers title content_type min-kubernetes-server-version
robscott
Enabling Topology Aware Hints task 1.21

{{< feature-state for_k8s_version="v1.21" state="alpha" >}}

Topology Aware Hints enable topology aware routing with topology hints included in {{< glossary_tooltip text="EndpointSlices" term_id="endpoint-slice" >}}. This approach tries to keep traffic close to where it originated from; you might do this to reduce costs, or to improve network performance.

{{% heading "prerequisites" %}}

{{< include "task-tutorial-prereqs.md" >}} {{< version-check >}}

The following prerequisite is needed in order to enable topology aware hints:

  • Configure the {{< glossary_tooltip text="kube-proxy" term_id="kube-proxy" >}} to run in iptables mode or IPVS mode
  • Ensure that you have not disabled EndpointSlices

Enable Topology Aware Hints

To enable service topology hints, enable the TopologyAwareHints feature gate for the kube-apiserver, kube-controller-manager, and kube-proxy:

--feature-gates="TopologyAwareHints=true"

{{% heading "whatsnext" %}}