Skip to content

Day 2

Remove a node

Take one node out of its cluster and wipe its machine.

  1. Cordon and Drain. The drain stops after 15 minutes.
  2. For a control plane: EtcdForfeitLeadership if it is the leader, and EtcdLeave.
  3. TalosReset. This wipes the system disk.
  4. DeleteKubernetesNode.
  5. PowerOff. The Host returns to the pool.
  1. Delete the claim of the node.

    Terminal window
    kubectl -n default delete hostclaim w-3
  2. Approve the release.

    Terminal window
    pk-metal approve pk-metal/release-simhw2288v5000399-8e7f6a5b
  3. To remove the node for good, delete its TalosNode.

    Terminal window
    kubectl delete talosnode w-3

The operator refuses a removal that leaves etcd with no member, no healthy majority, or an even count. The claim then shows EtcdRiskRefused. To accept the risk, annotate the claim with your username and your reason:

Terminal window
me=$(kubectl auth whoami -o jsonpath='{.status.userInfo.username}')
kubectl -n default annotate hostclaim cp-3 metal.platform-kit.org/ack-etcd-risk="$me: scale down to one control plane"
  • The Host is Available.
  • kubectl get talosnodes does not list the node.
What you see Go to
The drain step fails Drain stuck
Host DiskWiped=False, InstalledNodeRemains Disk not wiped
TalosNode stays with RemovalBlocked The message names what it waits for: the machine, or the etcd member.