(no title)
embik | 3 years ago
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...
tveita|3 years ago
Silly default IMO but apparently "intentional".
https://github.com/kubernetes/autoscaler/issues/2048
dijit|3 years ago
I can’t be sure which one the GP is referring to, but GKE definitely operates the way they described.
embik|3 years ago
My point is that while the original post is reporting problems with autoscaling in Kubernetes without enough details to go by, cluster-autoscaler is fairly good at its job of downsizing clusters if you take the time to a) optimize its configuration and b) make sure your workloads are configured in a way that allows downsizing clusters.
[1] https://cloud.google.com/kubernetes-engine/docs/concepts/clu...