Skip to content

Day 2

Wipe and decommission

Make sure that a machine holds no node and no cluster credentials. Then remove it from the operator.

  • The machine has no claim, or you removed its node.
  • A person can approve the wipe.

A machine that did not answer during its release keeps its install. Its Host shows DiskWiped=False, reason InstalledNodeRemains.

  1. Ask for the wipe.

    Terminal window
    pk-metal wipe simhw2288v5000399
  2. Approve the proposed operation. Its name starts with wipe-.

    Terminal window
    pk-metal approve

    The 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:

Terminal window
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"
  1. Release the machine. See Release a host.

  2. Wipe it, as above, if the Host shows DiskWiped=False.

  3. Delete its Asset.

    Terminal window
    kubectl delete asset sim-0003
  4. Remove its line from the ledger and apply the overlay.

  5. Remove the BMC credentials Secret if no other Asset uses it.

kubectl get hosts does not list the machine.