Skip to content

Day 2

Reboot a node

Reboot one node and give it back to the scheduler when it is Ready.

Role Steps
Worker Cordon → Drain → TalosReboot → WaitNodeReady → Uncordon
Control plane The same, with WaitEtcdHealthy before Uncordon
  1. Propose the reboot.

    Terminal window
    pk-metal reboot w-1

    The command makes one HostOperation, for example pk-metal/reboot-w-1-x7k2p.

  2. Approve it. If your site forbids self-approval, ask a second person to approve it.

    Terminal window
    pk-metal approve pk-metal/reboot-w-1-x7k2p
  3. Monitor the operation.

    Terminal window
    kubectl -n pk-metal get hostoperation reboot-w-1-x7k2p -w

    The phase goes from Running to Succeeded.

--mode powercycle
A cold start through the firmware. Use it after a firmware change. The default is a warm reboot or a kexec.
--drain-timeout 30m
The drain waits this long for pods to leave. The default is 15 minutes.
--grace-period 60
Each evicted pod gets 60 seconds to stop.
--delete-emptydir-data
Also evict pods with emptyDir volumes. You lose their data.

Propose one reboot for each node. Approve all of them. Workers reboot in parallel. Control planes reboot one at a time, because the cluster guard holds the others.

Terminal window
kubectl get talosnode w-1

READY is True. The Kubernetes node is schedulable.

What you see Go to
Blocked on ClusterDisruption Operation held
The drain step fails, the node stays cordoned Drain stuck
waitNodeReady fails Node not ready