|
|
|
|
|
by dijit
1304 days ago
|
|
Imagine that kubernetes isn’t moving workloads to nodes that have spare space that would fit. Or, think of it as defragging. You basically have enough work for 3 nodes but it’s spread over 5 nodes with some spare capacity on each. Kubernetes is not killing the extra workloads to consolidate it all on the 3 nodes it would have fit on; kubernetes only does bin-packing on new workloads. |
|
The cluster-autoscaler component does remove nodes with low utilization and Pods fitting onto other nodes, effectively defragging the cluster. There's just plenty of reasons for it to not drain a node (as per its FAQ[1]).
But it's highly configurable, so I wonder if the grandparent post just needed some configuration changes to suit their scenario better.
[1] https://github.com/kubernetes/autoscaler/blob/master/cluster...