Enabling Service Topology
This feature, specifically the alpha topologyKeys
field, is deprecated since Kubernetes v1.21. Topology Aware Hints, introduced in Kubernetes v1.21, provide similar functionality.
You need to have a Kubernetes cluster, and the kubectl command-line tool must be configured to communicate with your cluster. It is recommended to run this tutorial on a cluster with at least two nodes that are not acting as control plane hosts. If you do not already have a cluster, you can create one by using or you can use one of these Kubernetes playgrounds:
The following prerequisites are needed in order to enable topology aware service routing:
- Kubernetes v1.17 or later
- Configure to run in iptables mode or IPVS mode
To enable service topology, enable the feature gate for all Kubernetes components:
- Read about
- Read about the Service Topology concept
- Read