Skip to main content

Will data on local bare-metal disks survive an upgrade?

Syself support For release

Yes. Local NVMe data survives a Kubernetes node upgrade as long as the node comes back on the same physical server. An update or upgrade reinstalls only the OS disk. Data disks, for example the NVMe drives you use with TopoLVM, are left untouched, and the volumes are there again when the node rejoins. The OS disk includes /var, so data that a workload keeps there, for example in a hostPath volume, is gone after the reinstall.

Local storage is still one copy on one server. It does not survive a failed disk or a replaced server. So use local disks with TopoLVM together with a Kubernetes operator for your application, for example CloudNativePG for PostgreSQL. The operator handles replication, backup, high availability and failover at the application level. This setup gives you the best performance and comes closest to a managed service. To set it up, start with Run databases on the cluster.

Bare-metal workers are replaced one at a time by default. Syself Autopilot drains the node, reinstalls the server and joins it again. The replacement takes a free server that matches the pool's host selector. Set the selector so it matches only the servers of that pool. If it also matches a spare server, the node can come back on the spare, and the data stays on the old server. See Add bare-metal servers for how to label and select hosts.

Self-healing reboots a failed node first and reinstalls it the same way if the reboot does not help. To stop automatic reinstalls for a pool, see Can we disable the health check for a bare-metal pool?

On Hetzner Cloud nodes, nothing on the server's own disk survives a replacement. Data on Hetzner Cloud Volumes does, because a volume is attached over the network.

What a reprovision replaces and what it keeps is listed in Data survival across reprovision.

Still stuck?

Prepare your case, then email us.