How do I create my first cluster?
To create a Kubernetes cluster on Hetzner with Syself Autopilot, describe it in a Cluster object and apply it to the management cluster. You apply it like any Kubernetes resource, with kubectl apply -f cluster.yaml or a GitOps tool.
The Cluster Configurator generates the YAML for you and checks each field. Before you apply it, you need access to the management cluster and your Hetzner credentials stored there. If you have not done that yet, the guided onboarding takes you through it. If the cluster uses bare-metal servers, register them first as described in Add bare-metal servers.
A single control-plane node is fine for a test. For production, run three. A production cluster on a single control plane is not covered by support, also on paid plans. See How many control-plane nodes should we run?
After you apply the object, Syself Autopilot provisions the servers in your Hetzner account, writes Syself Linux to them and joins them into one cluster. You do not log in to a server or run an installer. On Hetzner Cloud, a cluster is ready in about five to ten minutes.
Watch the progress on the management cluster with kubectl get machines. Each machine moves from Pending to Running. The cluster is ready when kubectl get cluster <name> shows True in the AVAILABLE column.
For the full walkthrough, follow Create a cluster. Then get the kubeconfig to connect to the new cluster. If the first machine does not reach Running, see Why does the first control plane of my new cluster never come up?
Related questions
