Skip to:
Starting k8s 1.16, one can use https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/#spread-constraints-for-pods
If the operator uses that with maxSkew there's no need to set hard affinity rules and still guarantee that pods are distributed among available nodes.
The support of topologySpreadConstraints was added.
Starting k8s 1.16, one can use https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/#spread-constraints-for-pods
If the operator uses that with maxSkew there's no need to set hard affinity rules and still guarantee that pods are distributed among available nodes.