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.
Synopsis
Section titled “Synopsis”pk-metal reinstall [-n namespace] [--ack-etcd-risk reason] <claim> | <node>| Flag | Default | Description |
|---|---|---|
--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> | default | Namespace of the claim. |
This command also accepts the global flags --kubeconfig and --context.
What it does
Section titled “What it does”- The command finds the claim by its name. If no claim has the name, it finds the claim that names the node.
- It refuses a claim that has no completed install. Such a claim installs by itself.
- It sets the annotation
metal.platform-kit.org/reinstallon the claim. The value is the time of the install that it replaces. - With
--ack-etcd-risk, it also setsmetal.platform-kit.org/ack-etcd-riskto<your username>: <reason>. - The HostClaim controller proposes one HostOperation. Approve it with pk-metal approve.
The operation does these steps:
- It drains the node.
- For a control plane, it removes the node from etcd.
- It resets the system disk.
- It boots the installer.
- It waits until the node checks in again.
If you replaced the disk, change installDiskSelector of the TalosNode before you run the command.
Examples
Section titled “Examples”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.
pk-metal reinstall --ack-etcd-risk "corrupt install, ticket 456" cp-3Objects
Section titled “Objects”| Object | Access | Purpose |
|---|---|---|
| HostClaim | get, list, patch | Sets metal.platform-kit.org/reinstall and, with the flag, metal.platform-kit.org/ack-etcd-risk. |
Exit status
Section titled “Exit status”Related
Section titled “Related”- pk-metal replace moves the node to a different machine, for hardware that failed.
- pk-metal wipe wipes a released machine without a new install.
- Replace a node
- Remove a node
- Node not ready