My Kubernetes upgrade is stuck or failed. How do I recover?
A Kubernetes upgrade that is stuck is usually blocked on one node. Syself Autopilot replaces nodes one at a time, so one node that cannot drain, cannot be created or cannot join holds the rollout. The other nodes keep running your workloads. Find the blocked node and clear the block. The rollout then continues on its own.
If a node does not drain, look for a PodDisruptionBudget that holds its pods. The drain waits until the pool's drain timeout ends, then the node is removed with the pods still on it. A budget that can never be met delays every node this way. Change it to one a drain can meet, as described in Add a PodDisruptionBudget.
If a cloud server is not created, the usual reason is capacity: Hetzner does not offer the server type in your location, or it is sold out. That attempt is not retried on its own, and the HCloudMachine in the management cluster shows the error. For a worker pool, switch the pool to a server type that is available, or delete only that Machine once capacity is back. To change the type, see A Hetzner server type is deprecated or unavailable. How do we move? If capacity does not come back, you can move the nodes to bare metal: No servers available.
If a new node does not join, read its Machine in the management cluster for the reason. For each of these cases, the steps are in Failed or stuck upgrades.
A rollout only moves forward, and there is no rollback (Can a Cluster Stack upgrade be rolled back?). If the control plane rollout is the one that does not move, do not delete a Machine. Open a ticket and leave the cluster as it is, as described in What should I do if a control plane rollout is stuck?
If you are not sure what blocks the rollout, contact support early, before you try more changes. As long as the servers exist, a cluster can almost always be recovered.
Related questions
