These annotations are commands. Most of them have a pk-metal command that sets the annotation for you.
You can always remove the annotation. That puts the guard back. A value from before the policy, or an empty value, stays until somebody changes it. An empty value does not count: the operator ignores the annotation, and the guard stays. See Audit trail.
The mark "API" means that the key is a constant of the API package. The mark "internal" means that one controller uses the key for its own records.
The annotation on a HostOperation asks the executor to stop it. The value is "<username>: <reason>": who asked and why. Admission accepts no other form, and only the caller's own username (config/policy/guard-lift.yaml); pk-metal abort writes it. An operation that has not started ends at once. A running one stops before its next step: a step that already acted on the machine (a reboot asked for, a power cycle half done) is finished first, then the executor undoes what the operation left behind (it ejects the media it mounted, clears the boot override it set, and makes schedulable again the node it cordoned) and the operation ends as Aborted. Deleting the operation also stops it, but undoes nothing.
The annotation on a HostClaim or a TalosNode lets the removal or reinstall of a control plane continue, although etcd then has an even number of voting members, no healthy majority, or no member. Without it, the operator refuses such a removal and says why. The value is "<username>: <reason>": who accepted the risk and why. Admission accepts no other form, and only the caller's own username (config/policy/guard-lift.yaml). pk-metal scale sets it on the removals of a plan that passes through an even count, and names its caller.
The annotation on a Host lets the operator reboot or power off a machine that it needs itself. This is the machine that it runs on, or a control plane of the cluster that it runs in. Without it, the operator proposes no install, release or BIOS change for such a machine. It also starts no power action on it, because the operator would stop itself in the middle of the work. With the annotation, the operator still takes down only one control plane at a time. It does so only while the other control planes keep the etcd majority. The value is "<username>: <reason>": who allowed it and why. Admission accepts no other form, and only the caller's own username (config/policy/guard-lift.yaml). Remove the annotation when the work is done:
kubectl annotate host <host> metal.platform-kit.org/allow-self-disruption="<you>: <reason>"
kubectl annotate host <host> metal.platform-kit.org/allow-self-disruption-
The safer way is to move the operator to another cluster first (pk-metal pivot); the machine is then an ordinary one.
The annotation on a ManagementEndpoint approves a new TLS key of the BMC: the value is the key as the Reachable condition names it ("sha256:<hex>"). The operator pins that key when the BMC presents it, and then removes the annotation. A key that is not presented is never pinned.
The annotation on a boot operation names the rendered config it boots, so its success can be recorded with the digest.
The annotation on a Host says that the machine can still hold an installed Talos node, with the credentials of its cluster. On a control plane, the disk can also hold etcd data. The operator writes it when it releases a machine that it could not reset through Talos. The node did not answer, or the executor could not run a reset. Only an approved wipe removes it. While it is set, the operator proposes no install of another node on the machine. It also proposes no BIOS or firmware change that would power the machine on. The value is <cluster>/<node>, the node that can still be on the disk.
pk-metal wipe <host>
The annotation on a HostOperation with an etcdRecover step records that a person uploaded the snapshot to the node. Its value is "<username>: sha256:<hex>": who uploaded, and the sha256 of the plaintext that pk-metal restore upload sent. Admission accepts no other form, and only the caller's own username (config/policy/guard-lift.yaml). The command first checked those bytes against the record of the EtcdSnapshot. The step waits for it, and only then asks Talos to start etcd from the upload. It is the uploader's statement, not proof; Talos checks etcd's own integrity hash of the upload when it recovers.
The annotation on a HostClaim stops the operator from proposing anything for it: no install, no release. Proposals still waiting for approval are withdrawn. The value is an optional reason, shown in the claim's Provisioned condition. An operation already approved and running is not stopped by it. Remove the annotation to go on.
The annotation on a HostOperation lets it start outside every maintenance window. It is for an urgent case that a person decides on: a security fix, or a machine that is down already. The value is "<username>: <reason>": who lifted the window and why. Admission accepts no other form, and only the caller's own username (config/policy/guard-lift.yaml). It shows in the record of the operation.
The annotation on a Host takes the machine away from the operator, as an offline node in a cluster manager. The operator proposes nothing for it: no install, no release, no BIOS or firmware change. It starts no operation on it that has not started yet. An operation already running finishes. The value is the reason, shown in the Host's Maintenance condition and in the messages of claims on it. Remove the annotation to give the machine back:
kubectl annotate host <host> metal.platform-kit.org/maintenance="replacing DIMM B2"
kubectl annotate host <host> metal.platform-kit.org/maintenance-
The annotation on a HostOperation lets it take a control plane down although etcd is not fully healthy without it: the way out when etcd is already broken and the reboot is the repair, or for a cluster with a single control plane. The value is "<username>: <reason>": who lifted the guard and why. Admission accepts no other form, and only the caller's own username (config/policy/guard-lift.yaml). It does not lift the one-control-plane-at-a-time rule, and it does not lift self-protection.
The annotation on the source's operator namespace keeps the manager's replica count from before the pause.
The annotation on the target's operator namespace names the cluster (its kube-system UID) the operator was moved from.
The annotation on the source's operator namespace names the cluster the operator was moved to. A source carrying it is paused on purpose.
The annotation on a HostClaim asks the operator to wipe and reinstall the node of the claim on the same machine. Use it for a damaged install or a replaced disk. The value is the claim's status.handOff.at (RFC 3339). Thus it names the install that was there when a person asked, and it works one time. The reinstall writes a new hand-off record. The annotation then names an install that is gone, and asks for nothing. pk-metal reinstall sets it.
The annotation on a reinstall operation is the hand-off time of the install it replaces (metal.platform-kit.org/reinstall's value).
The annotation on a Host names the UID of the claim whose release powers the machine off. The executor writes it when a boot of the claim starts, before its first BMC write; the release writes it when it decides. It keeps that decision after the records it was read from are gone: the boot operations are deleted to stop the boot or by pk-metal retry, and the release operation itself can be deleted by pk-metal retry or by its TTL. Without it, the next pass would find no boot and hand back a machine that is still mid-boot. releaseAll removes it when the host is unbound.
The annotation on an object whose change makes the operator propose work names the person who last changed what the object asks for. Its value is a username. Admission (config/policy/requested-by.yaml) accepts a request that changes the intent of such an object only if the request also sets this annotation to the username of the request, and a request that changes the annotation only if it names the requester. So the value always names the last person who changed the intent, or a person who took the change on as theirs.
The operator copies the names of the objects behind a proposal into the proposal's spec.requestedBy. Where the site forbids self-approval, none of them may approve it: the person who bumps a cluster's version, marks a Host for a wipe or a claim for a reinstall cannot approve the change that follows, although the operator proposed it.
The intent of each kind, and the kinds themselves, are listed in the policy. pk-metal sets the annotation for its caller; a GitOps controller sets its own service account name in the manifests it applies.
The annotation on a failed convergence proposal (spec.reason BiosConvergence or FirmwareConvergence) asks the operator for the same plan again: it deletes the failed operation and proposes a new one, which waits for approval like the first. pk-metal retry sets it. Deleting such an operation instead is not a retry: deletion is how a proposal is refused.
The annotation on a Host asks the operator to propose a wipe of a machine that has metal.platform-kit.org/disk-not-wiped. The wipe boots an image that erases the system disk, and stops there. The value is the Talos version of the image to boot. The version of the node on the disk is correct. pk-metal wipe sets it. The operator removes it and metal.platform-kit.org/disk-not-wiped when the wipe succeeds.
The annotation on a Host records who removed metal.platform-kit.org/disk-not-wiped without a wipe, and why: "<username>: <reason>". Admission refuses the removal of the mark by a person unless the same request sets this annotation in that form, with the person's own username (config/policy/guard-lift.yaml). The operator removes it when it marks the machine again or wipes it, and the audit trail names it when an install starts on the machine.
kubectl annotate host <host> metal.platform-kit.org/disk-not-wiped- \
metal.platform-kit.org/wipe-waived="<you>: <reason>"
The annotation records which config digest an artifact Secret was built from. ISO recording metadata would make artifact bytes per-build, so rebuilds key on this — never on the artifact digest.
The annotation on a TalosNode asks its reconciler to look at the machine now. The value only has to change; it names the operation and the time that asked.
The annotation on a TalosCluster says that its etcd is to be restored from a snapshot, not started empty: the operator does not bootstrap the cluster while it is set, even though it was never seen bootstrapped. Set it on a TalosCluster re-created to restore a lost cluster (docs site: operate/day-2/restore-etcd, "Majority lost"). Once the restored etcd is observed, status.bootstrappedAt takes over and the annotation has no further effect.
The annotation on a TalosRollout lets it go on past the pause after its first node. Its value must be the rollout's planHash: a resume given for one plan does not carry over to another. `pk-metal rollout resume` sets it.
The source has no description.
Labels joining the operator's operations back to the claim they serve — operations live in the operator's namespace, claims wherever they are.
The source has no description.
The label marks BootAssets the lane created for itself.
The source has no description.
The label on a wipe operation names its host, so the host's wipes are listed without the claim labels a wipe does not have.
The label marks the build Jobs of one BootAsset. The UID, not the name: a name may be longer than a label value can be.
The source has no description.
The source has no description.
The label marks the operations restore proposes for a cluster.
The label on a lifecycle operation names the TalosNode it acts for.
The label marks a ConfigMap that holds Talos config patches. The operator reads a patch only from a ConfigMap with this label (any value), and admission asks who changed such a ConfigMap (metal.platform-kit.org/requested-by, config/policy/requested-by.yaml), so that a change of a patch is attributed like a change of the cluster.
The label marks a rollout the operator proposed with the hash of what it proposes.
The label on a HostOperation names the TalosRollout it is one node's part of.
The finalizer keeps a claimed machine's Host and every endpoint fronting it alive until the claim lets go — the pvc-protection pattern.
The finalizer holds a deleted claim until its machine is handed back.
The finalizer holds a deleted TalosNode until its node is out of its cluster. Without it a TalosNode could vanish while its machine still runs, with nothing left to say which cluster that machine is a member of, and the steps that take it out (drain, etcd leave, reset) would have no node to act on.
The generated list does not have these keys, because the source makes each of them from a prefix and a name.
Do not set or change an internal key. The operator can write it again or read a wrong record.
The anchor of a key is the key.