Feature state: 1.0.0
podAntiAffinityToplologyKey sets the TopologyKey to use for automatic
podAntiAffinityTopologyKey is set to
Define podAntiAffinity with zone toplogy key
In the above example three replicas of application would prefer to be scheduled on Kubernetes nodes spread in different availability zones.
For more examples please see the Best practices linked below.