Day 2
Remove a node
Take one node out of its cluster and wipe its machine.
Before you start
Section titled “Before you start”- The workloads can move to the other nodes.
- For a control plane: what remains of etcd is safe. See Scale control planes.
- A person can approve the release.
What the release does
Section titled “What the release does”- Cordon and Drain. The drain stops after 15 minutes.
- For a control plane: EtcdForfeitLeadership if it is the leader, and EtcdLeave.
- TalosReset. This wipes the system disk.
- DeleteKubernetesNode.
- PowerOff. The Host returns to the pool.
-
Delete the claim of the node.
Terminal window kubectl -n default delete hostclaim w-3 -
Approve the release.
Terminal window pk-metal approve pk-metal/release-simhw2288v5000399-8e7f6a5b -
To remove the node for good, delete its TalosNode.
Terminal window kubectl delete talosnode w-3
Remove a control plane
Section titled “Remove a control plane”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:
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"Verify
Section titled “Verify”- The Host is
Available. kubectl get talosnodesdoes not list the node.
If it fails
Section titled “If it fails”| 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. |