Day 2
Replace a node
Run a node on other hardware, with the same node name.
Before you start
Section titled “Before you start”- You are a member of the admin group (
pk-metal:adminsby default). Only this group can point a claim at another machine. - A free Host exists for the new machine.
- You know the disk serial and the NIC MAC of the new machine. A TalosNode can select by them.
Choose the method
Section titled “Choose the method”| The old hardware | Method |
|---|---|
| Still works | Add first, then remove. etcd never runs short. |
| Failed (power supply, main board) | pk-metal replace. The operator releases the old machine first. |
| Has a failed install disk only | Replace the disk, then Reinstall a node. |
-
Edit the TalosNode to the values of the new machine:
installDiskSelectorand the linkhardwareAddr.Terminal window kubectl apply -f nodes/cp-2.yaml -
Ask for the replacement. For a control plane of three, give a reason. etcd has two members in between.
Terminal window pk-metal replace cp-2 --host simhw2288v5000401 --ack-etcd-risk "cp-2 PSU failed" -
Approve the release of the old machine.
Terminal window pk-metal approve -
Approve the install on the new machine.
Terminal window pk-metal approve
-
Write a new TalosNode for the new machine, for example
cp-4. -
Add it. See Add a node.
-
Wait until it is
Ready. For a control plane, wait until its etcd member votes. -
Remove the old node. See Remove a node.
Verify
Section titled “Verify”- The node is
Readyon the new Host. kubectl get hostclaim -n default cp-2shows the new Host.
If it fails
Section titled “If it fails”| What you see | Go to |
|---|---|
only an admin ... may point a claim at another machine |
Join the admin group. See hostclaim-provisioning. |
Claim blocked on EtcdRiskRefused |
Add --ack-etcd-risk. |
Old Host InstalledNodeRemains |
Disk not wiped |
| The install fails | Operation failed |
Related
Section titled “Related”- pk-metal replace, Reinstall a node
- mise run lab:scale replaces a control plane in the lab.