This guide provides the information you need to add your baremetal machines to your cluster.
Autopilot only manages the installation of necessary software on bare metal machines and the adding/removing of machines from the cluster. Autopilot does NOT buy nor sell the servers.
Create a baremetalhosts.yaml
file, following the example below:
And apply it to your management cluster.
If the baremetal machines were previously configured to use RAID, you must follow the steps in Wiping baremetal server disks before adding them to your cluster. If you have already added them to your cluster, you will need to remove and reapply the HetznerBareMetalHosts after wiping the disk.
By default, newly purchased machines come with RAID enabled. If you are unsure whether you need RAID or not, we recommend that you disable it.
Edit your Cluster resource in the management cluster (or cluster.yaml in your GitOps repository), adding the snippet below to spec.topology.workers.machineDeployments
:
Now, your cluster will request two machines from the baremetal class. Since you have exactly two hosts, all of them will be used. If you want to prioritize specific machines for addition, you can use labels and selectors:
Add a label to your machine:
And use matchLabels
to select it in your Cluster resource, under spec.topology.workers
: