Can the health check replace a node during a rolling upgrade?
Yes, but the machine health check replaces a new node only after its node startup timeout has passed. During a rolling upgrade, every new node gets this time to boot and join the cluster. The Cluster Stack sets it (nodeStartupTimeoutSeconds) to 1800 seconds (30 minutes) for control-plane nodes and bare-metal workers, and to 600 seconds (10 minutes) for cloud workers.
Once a node has joined, it is checked like every other node in its pool, as described in Does Syself Autopilot replace a failed node on its own? A node that does not join in time counts as unhealthy. Syself Autopilot reboots the server first. If the node still does not join, a cloud server is replaced with a new one and a bare-metal server is reprovisioned. You do not rebuild the node yourself.
If you work on a node and want the health check to leave it alone, pause remediation for that node. The steps, and the time windows for each pool type, are in Machine health checks and remediation. If you would rather handle failed nodes in a bare-metal pool yourself, you can turn the health check off for that pool.
Related questions
