Skip to content

Command · pk-metal

pk-metal reinstall

changes machinesneeds the cluster

pk-metal reinstall asks for a new install of one node on the machine that it runs on. Use it for a damaged install, or after you replace a disk. The operator proposes one operation, and a person approves it.

pk-metal reinstall [-n namespace] [--ack-etcd-risk reason] <claim> | <node>
<claim> or <node>
The name of the HostClaim, or the name of the TalosNode that a claim names.
FlagDefaultDescription
--ack-etcd-risk<string>-Reason to accept an even or short etcd membership while a control plane reinstalls; stored on the claim as "<your username>: <reason>".
-n<string>defaultNamespace of the claim.

This command also accepts the global flags --kubeconfig and --context.

  1. The command finds the claim by its name. If no claim has the name, it finds the claim that names the node.
  2. It refuses a claim that has no completed install. Such a claim installs by itself.
  3. It sets the annotation metal.platform-kit.org/reinstall on the claim. The value is the time of the install that it replaces.
  4. With --ack-etcd-risk, it also sets metal.platform-kit.org/ack-etcd-risk to <your username>: <reason>.
  5. The HostClaim controller proposes one HostOperation. Approve it with pk-metal approve.

The operation does these steps:

  1. It drains the node.
  2. For a control plane, it removes the node from etcd.
  3. It resets the system disk.
  4. It boots the installer.
  5. It waits until the node checks in again.

If you replaced the disk, change installDiskSelector of the TalosNode before you run the command.

pk-metal reinstall
pk-metal reinstall w-1
claim default/w-1: reinstall of node w-1 on host simhw2288v5000400 asked for (the install of 2026-11-20T08:15:02Z).
The operator proposes one operation: drain, leave etcd (control plane), reset the system disk, install, wait for the check-in.
Approve it with: pk-metal approve. pk-metal status shows what it waits for.

Reinstall a control plane of a cluster with three control planes.

Terminal window
pk-metal reinstall --ack-etcd-risk "corrupt install, ticket 456" cp-3
Object Access Purpose
HostClaim get, list, patch Sets metal.platform-kit.org/reinstall and, with the flag, metal.platform-kit.org/ack-etcd-risk.
CodeMeaning
0Success.
1Error; the message is on stderr, as "pk-metal: <message>".