What is the full flow to remove or replace a bare-metal machine?
To replace a bare-metal node in a Kubernetes cluster on Syself Autopilot, you put its host into maintenance mode, let Hetzner repair the server, and release the host again. To remove a node for good, you mark its Machine and scale the pool down. Syself Autopilot drains the node in both cases.
Remove a specific node
- Annotate the Machine with
cluster.x-k8s.io/delete-machine="". - Lower
replicasby one on that pool inspec.topology.workers.machineDeployments.
The annotation alone removes nothing. When the count goes down, the annotated Machine goes first. The host stays registered and is used again when the pool grows.
Replace a failing server or disk
- Move or back up the local volumes on that node. Data disks survive a reinstall, but not a disk that Hetzner swaps.
- Set
maintenanceMode: trueon the HetznerBareMetalHost. Syself Autopilot drains the node, deletes its Machine and does not use the host until you release it. On a pool with health checks turned off, delete the Machine yourself. - When Hetzner has repaired the server, set
maintenanceMode: false. If the OS disk was swapped, update the WWN inrootDeviceHintsfirst.
The host is then free, and a new Machine claims it and installs it again.
The commands are in Remove a specific node. Before a disk is swapped, check in Data survival across reprovision which data stays on the server. If a Machine does not go away, see Machine stuck in Deleting. Is removing the finalizer safe?
Related questions
