Skip to main content

Why is the Cluster Autoscaler not adding nodes?

Syself support For release

When the Cluster Autoscaler is not adding nodes, the usual causes are: no pod is Pending for lack of capacity, the pool is not set up for autoscaling or is at its maximum, or Hetzner cannot create the server. The autoscaler adds a node only if a pod cannot be scheduled and a new node from an autoscaled pool would fit it.

Check in this order:

  • The pending pod: kubectl describe pod shows why it is not scheduled. A pod that needs more CPU or memory than one node of the pool offers, or a node selector or toleration that no autoscaled pool satisfies, does not trigger a scale-up.
  • Resource requests: pods without requests are packed onto the existing nodes and do not become Pending. Set requests on every container.
  • The pool: it needs a minimum and a maximum size, and it must be below its maximum. Do not set replicas on a pool that has the autoscaler annotations.
  • The autoscaler: you install it in the workload cluster, and it reaches the management cluster with its own credentials. Its logs say why it skipped a scale-up.
  • The new server: if the pool size went up and no node arrives, read the Machine and the HCloudMachine in the management cluster. A server type that Hetzner does not offer or has sold out in the location stops there.

For the commands to read both objects, see A server that will not provision. If the server type is the problem, continue with A Hetzner server type is deprecated or unavailable. How do we move?

Once the autoscaler raises the pool size, Syself Autopilot provisions the server and joins the node. To install the autoscaler and set the minimum and maximum size of a pool, follow Autoscale node pools.

Still stuck?

Prepare your case, then email us.