Is there a way we can evenly distribute pods across multiple zones?

Varun Tyagi:
Is there a way we can evenly distribute pods across multiple zones?

David Hoatson:
Looks like topology spread constraints, https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/, Alpha in 1.19, will do just that. But from experience, having your nodes distributed between AZs with a good provisioning tool like Terraform should go some way towards having evenly distributed pods.

Varun Tyagi:
Thank you David and how can we acheieve this is 1.17 ?

David Hoatson:
I’d just make sure your nodes are evenly distributed between zones. That should get you close to evenly distributed pods, presuming you don’t have any large single-pod deployments. https://kubernetes.io/docs/concepts/scheduling-eviction/scheduler-perf-tuning/#how-the-scheduler-iterates-over-nodes