CWActive Node condition or the Node Pool scaleDownStrategy. Those govern scale-down driven by the NodePool Operator when you lower targetNodes directly, not the autoscaler. As a result, if a Node becomes underutilized for the configured period while it is still active, the Cluster Autoscaler can determine that the Node is unneeded and mark it for removal.
To prevent workload disruption, use one of the following annotations:
- To prevent the autoscaler from evicting a Pod, annotate the Pod with
cluster-autoscaler.kubernetes.io/safe-to-evict: "false". - To prevent the autoscaler from marking a Node for removal, annotate the Node with
cluster-autoscaler.kubernetes.io/scale-down-disabled: "true".
Nodes Workload Scheduling