Add topologySpreadConstraints to the specs for even distribution of the pods

Description

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.

Environment

None

Smart Checklist

Activity

Show:

Slava Sarzhan September 1, 2023 at 10:46 AM

The support of topologySpreadConstraints was added.

Done

Details

Assignee

Reporter

Needs QA

Yes

Needs Doc

Yes

Fix versions

Priority

Smart Checklist

Created July 3, 2020 at 6:26 AM
Updated March 5, 2024 at 5:06 PM
Resolved October 9, 2023 at 6:51 PM