mirror of
https://github.com/floci-io/floci.git
synced 2026-12-01 01:12:48 -05:00
A pool whose consolidationPolicy is WhenEmptyOrUnderutilized (the default) or Balanced (Auto Mode's built-in pools') now consolidates a node whose workload pods have stayed the same for its consolidateAfter. When they fit on the pool's other Ready nodes, the node is tainted, drained and removed as an empty node is. Otherwise, when a smaller type the pool allows holds them, the node is tainted karpenter.sh/disrupted:NoSchedule, a replacement is launched, and the old node goes once the replacement is joined and Ready. A pool replaces one node at a time, and the budgets that cover Underutilized count. A do-not-disrupt pod, a pod pinned to named nodes, or a PodDisruptionBudget allowing no disruption keeps the node; once a replacement is Ready, such a pod holds the old node until a later pass can drain it. A replacement that is gone, or not Ready within 10 minutes, is called off: the old node's taint is lifted, and it is uncordoned if a failed drain left it cordoned. WhenEmpty pools keep only removing empty nodes. Part of #8914