Skip to main content

What is the full flow to remove or replace a bare-metal machine?

Syself support For release

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

  1. Annotate the Machine with cluster.x-k8s.io/delete-machine="".
  2. Lower replicas by one on that pool in spec.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

  1. Move or back up the local volumes on that node. Data disks survive a reinstall, but not a disk that Hetzner swaps.
  2. Set maintenanceMode: true on 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.
  3. When Hetzner has repaired the server, set maintenanceMode: false. If the OS disk was swapped, update the WWN in rootDeviceHints first.

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?

Still stuck?

Prepare your case, then email us.