Why does the first control plane of my new cluster never come up?
When a new Kubernetes cluster is stuck provisioning, the first control-plane server did not start. Usually Hetzner cannot create the server, the Hetzner API token is wrong, or the SSH key is missing. Syself Autopilot creates the servers in your own Hetzner account with the credentials you gave it. The other nodes join only after the first control-plane node is up.
Find the Machine on the management cluster, then describe the object behind it. Its conditions and events name the cause:
kubectl get machines | grep <cluster-name>
kubectl describe hcloudmachine <name>
- "Server creation failed with an irrecoverable error": Hetzner cannot create the server, for example because the server type is not available in that location (
server location disabled). Change the server type or the location. If you wait for capacity instead, delete the Machine once capacity is back, and a new one is created. - "wrong hcloud token": the Hetzner API token in the
hetznerSecret is not valid. With a wrong token the list can be empty, because the first Machine is only created after the load balancer of the cluster exists. Then runkubectl describe hetznercluster <cluster-name>, which shows the same message. - "ssh key ... not present in hcloud": an SSH key that the cluster names does not exist in the Hetzner Cloud project. The name comes from
hcloud-ssh-key-namein thehetznerSecret or from theSSHKeyNameHcloudvariable of the Cluster.
With a bare-metal control plane, describe the hetznerbaremetalhost instead and see Why is my bare-metal server stuck provisioning?
If the token or the SSH key is the cause, set it up again with Connect your Hetzner account, or go through the guided onboarding if this is your first cluster. For the other checks, such as the server limit of your Hetzner Cloud project, see Cluster creation fails.
Related questions
