Yandex Cloud
Documentation
PresentationContact UsTry it for free
© 2026 Direct Cursus Technology L.L.C.
Yandex Managed Service for Kubernetes
  • Comparing with other Yandex Cloud services
  • Getting started
  • Access management
  • Pricing policy
  • Terraform reference
  • Monitoring metrics
  • Audit Trails events
  • Release notes
    • General questions
    • Data storage
    • Configuring and updating
    • Autoscaling
    • Resources
    • Monitoring and logs
    • Troubleshooting
    • All questions on one page
  1. FAQ
  2. Autoscaling

Questions and answers about node group autoscaling in Managed Service for Kubernetes

Written by
Yandex Cloud
Updated at November 12, 2026
View in Markdown
  • Why does my cluster have N nodes and is not scaling down?

  • In an autoscaling group, the number of nodes never scales down to one, even when there is no load

  • Why does the node group fail to scale down after the pod deletion?

  • Why does autoscaling fail to trigger even though the number of nodes is below the minimum or above the maximum?

  • Why do Terminated pods remain in my cluster?

  • Is Horizontal Pod Autoscaler supported?

  • How do I choose the minimum master preset to reduce costs?

  • Can I change the master’s autoscaling thresholds on the user side?

  • Can I set an upper limit on the master node's auto-scaling?

  • How can I prevent the master resources from scaling down during auto-scaling?

Why does my cluster have N nodes and is not scaling down?Why does my cluster have N nodes and is not scaling down?

Autoscaling does not stop nodes with pods that cannot be evicted. The following prevents scaling:

  • Pods with a PodDisruptionBudget that restricts their eviction.
  • Pods in the kube-system namespace:
    • Those not managed by a DaemonSet controller.
    • Those without a PodDisruptionBudget or those with a PodDisruptionBudget restricting their eviction.
  • Pods not managed by a replication controller, such as ReplicaSet, Deployment, or StatefulSet.
  • Pods with local volumes, such as hostPath or emptyDir without medium: Memory. The exception is pods with the cluster-autoscaler.kubernetes.io/safe-to-evict-local-volumes annotation whose value lists all local volumes used by the pod, e.g., volume-1,volume-2.
  • Pods that cannot be scheduled anywhere due to restrictions, e.g., due to insufficient resources or lack of nodes matching the affinity or anti-affinity selectors.
  • Pods annotated with "cluster-autoscaler.kubernetes.io/safe-to-evict": "false".

Note

You can evict kube-system pods, pods with local-storage, and pods without a replication controller. To do this, set "safe-to-evict": "true":

kubectl annotate pod <pod_name> cluster-autoscaler.kubernetes.io/safe-to-evict=true

Other possible causes include:

  • The node group has already reached its minimum size.

  • The node has been idle for less than 10 minutes.

  • The node group was scaled up in the last 10 minutes.

  • There was a failed attempt to scale down the node group in the last three minutes.

  • There was an unsuccessful attempt to stop a certain node. In this case, the next attempt occurs in 5 minutes.

  • The node is annotated to prevent it from being stopped during downscaling: "cluster-autoscaler.kubernetes.io/scale-down-disabled": "true". You can add or remove the annotation using kubectl.

    Check the node for annotations:

    kubectl describe node <node_name> | grep scale-down-disabled
    

    Result:

    Annotations:        cluster-autoscaler.kubernetes.io/scale-down-disabled: true
    

    Set the annotation:

    kubectl annotate node <node_name> cluster-autoscaler.kubernetes.io/scale-down-disabled=true
    

    You can remove the annotation by running the kubectl command with -:

    kubectl annotate node <node_name> cluster-autoscaler.kubernetes.io/scale-down-disabled-
    

Before reaching out to support, enable master logging in the Cloud Logging log group, including cluster autoscaler logs. These logs can help identify why the node is not being removed.

If the cause remains unclear, contact support. Provide the cluster ID, the approximate date and time when the issue occurred, and the YAML specifications of the controllers managing the affected pods.

Learn more about scaling diagnostics in this cluster autoscaler guide. The descheduler features are described in this guide.

In an autoscaling group, the number of nodes never scales down to one, even when there is no loadIn an autoscaling group, the number of nodes never scales down to one, even when there is no load

In a Managed Service for Kubernetes cluster, the kube-dns-autoscaler app decides on the number of CoreDNS replicas. If the preventSinglePointFailure parameter in the kube-dns-autoscaler configuration is set to true and there is more than one node in the group, the minimum number of CoreDNS replicas is two. In this case, the Cluster Autoscaler cannot scale down the number of nodes in the cluster below that of CoreDNS pods.

Learn more about DNS scaling based on the cluster size here.

Solution:

  1. Disable the protection setting that limits the minimum number of CoreDNS replicas to two. To do this, set the preventSinglePointFailure parameter to false in the kube-dns-autoscaler ConfigMap.

  2. Enable the kube-dns-autoscaler pod eviction by adding the save-to-evict annotation to Deployment:

    kubectl patch deployment kube-dns-autoscaler -n kube-system \
      --type merge \
      -p '{"spec":{"template":{"metadata":{"annotations":{"cluster-autoscaler.kubernetes.io/safe-to-evict":"true"}}}}}'
    

Why does the node group fail to scale down after the pod deletion?Why does the node group fail to scale down after the pod deletion?

If a node is underutilized, it will be deleted after 10 minutes.

Why does autoscaling fail to trigger even though the number of nodes is below the minimum or above the maximum?Why does autoscaling fail to trigger even though the number of nodes is below the minimum or above the maximum?

Autoscaling will not violate the preset limits, but Managed Service for Kubernetes does not explicitly enforce the limits. Scale-up occurs only when pods cannot be scheduled on existing nodes due to insufficient resources to meet their requests (unschedulable).

The Initial number of nodes parameter defines the number of nodes created along with the group. Once the group has been created, the group size is managed by the cluster autoscaler. The Minimum number of nodes parameter sets the lower limit for scaling down the group. Changing these parameters does not trigger immediate node creation. High utilization of already running pods alone does not trigger scale-up either.

If the issue persists, create a support ticket. Specify the cluster ID, error time, diagnostic results, expected group size, and descriptions of the unschedulable pods.

Why do Terminated pods remain in my cluster?Why do Terminated pods remain in my cluster?

This happens because the Pod garbage collector (PodGC) fails to timely clean up these pods during autoscaling. For more information, see Deleting terminated pods.

To get answers to other questions about autoscaling, see Kubernetes FAQ.

Is Horizontal Pod Autoscaler supported?Is Horizontal Pod Autoscaler supported?

Yes, Managed Service for Kubernetes supports Horizontal Pod Autoscaler.

How do I choose the minimum master preset to reduce costs?How do I choose the minimum master preset to reduce costs?

Choose the master configuration that matches the real cluster load. You may want to check out our recommended configuration options that depend on the number of nodes, maximum number of pods, and CNI in use.

Can I change the master’s autoscaling thresholds on the user side?Can I change the master’s autoscaling thresholds on the user side?

No, you cannot. The thresholds con only be managed on the Managed Service for Kubernetes side. If you have any feedback on how autoscaler works, please contact our support.

You can indirectly impact the autoscaler’s behavior by selecting the master configuration, since Master Autoscaler will not scale the resources down below the specified configuration.

Can I set an upper limit on the master node's auto-scaling?Can I set an upper limit on the master node's auto-scaling?

No, you cannot specify maximum values for auto-scaling.

How can I prevent the master node from scaling down during auto-scaling?How can I prevent the master node from scaling down during auto-scaling?

Choose the master configuration that best suits your load. Master Autoscaler does not scale the resources down below the specified configuration.

Was the article helpful?

Previous
Configuring and updating
Next
Resources
© 2026 Direct Cursus Technology L.L.C.