Hetzner has two offerings: Hetzner Robot (bare metal) and Hetzner Cloud (virtualized). The Syself Autopilot supports both of them. In case you want to work purely with Hetzner Cloud, you can ignore the bare metal specific preparation.
We assume that you have an account at Hetzner.
Please create a new project via Hetzner Cloud Console.
Create an API token inside your Hetzner project with read and write permissions. Store it somewhere safe, we'll be using it in later steps.
Create a new SSH key, for example by using this command:
Upload the public key to the Hetzner project.
The Robot User is needed for managing bare metal machines. You can create one like this:
Store all values that you gathered during the steps above in environment variables. You can omit the bare metal-related values if you only want to use Hetzner Cloud.
You can use "echo", for example echo $SSH_KEY_NAME
, to ensure that the values are set correctly.
To create Kubernetes clusters in your Hetzner account, you need to create secrets in the management cluster.
Create the secret "hetzner" in the following way:
Bare metal servers get provisioned with SSH. Therefore, you need to create another secret:
Via kubectl get secrets
you can check that the secrets got created as intended.