Day 2
Wipe and decommission
Make sure that a machine holds no node and no cluster credentials. Then remove it from the operator.
Before you start
Section titled “Before you start”Wipe a machine
Section titled “Wipe a machine”A machine that did not answer during its release keeps its install. Its Host shows DiskWiped=False, reason InstalledNodeRemains.
-
Ask for the wipe.
Terminal window pk-metal wipe simhw2288v5000399 -
Approve the proposed operation. Its name starts with
wipe-.Terminal window pk-metal approveThe machine boots a Talos image that erases the system disk. It stays in Talos maintenance mode, with an empty disk.
If you know that the disk is empty (you replaced it, or erased it another way), remove the mark yourself. Set metal.platform-kit.org/wipe-waived to your user name and the reason in the same request:
kubectl annotate host simhw2288v5000399 metal.platform-kit.org/disk-not-wiped- \ metal.platform-kit.org/wipe-waived="$(kubectl auth whoami -o jsonpath='{.status.userInfo.username}'): disk replaced"Decommission a machine
Section titled “Decommission a machine”-
Release the machine. See Release a host.
-
Wipe it, as above, if the Host shows
DiskWiped=False. -
Delete its Asset.
Terminal window kubectl delete asset sim-0003 -
Remove the BMC credentials Secret if no other Asset uses it.
Verify
Section titled “Verify”kubectl get hosts does not list the machine.