mirror of
https://github.com/floci-io/floci.git
synced 2026-12-02 09:47:56 -05:00
EKS Auto Mode ignored pods' zone topology spread constraints: withoutRoom counted a node in any zone as room for a pod the scheduler then refused for its skew, and a new node went to the first zone that fit, so pods that must spread kept getting nodes in one zone. Auto Mode now reads each DoNotSchedule zone constraint and checks the skew as the scheduler does, counting only pods on nodes the pod's node selector and required affinity accept, over the zones the pool can launch in. Room counts only in a zone the spread allows, and a spreading pod's node goes to the allowed zone with the fewest matching pods, a group sharing one node of the type that holds it. Pods without a spread are placed as before. Part of #8914