Skip to content

Concept

Approval

Nothing that disrupts a machine happens before a person approves it. The operator only proposes. A person reads the plan and approves it. Then the operator runs it. The operator never approves. A site setting tells if a person can approve their own proposal: selfApproval, Allowed by default.

Propose, approve, execute. The admission policy stands between the person and the operation.Proposeoperator or personApprovea personExecuteHostOperation controllerplanapprovedrules: approve as yourself, never as the operator, write once
The three roles. The approver is a person, never the operator. If the site forbids self-approval, the approver is not the proposer.
Proposal
A HostOperation or a TalosRollout that waits in AwaitingApproval. It names its proposer in spec.proposedBy.
Plan
The list of actions, fixed when the operator proposes. A changed plan is a new proposal with a new name.
Approver
A person with the ClusterRole pk-metal-approver. If the site sets selfApproval: Forbidden, the approver is not the proposer.
Self-approval
An approval by the person who proposed. The ConfigMap hostoperation-approval sets it: Allowed (the default) or Forbidden. See Set up approval permissions.
Hold
The annotation metal.platform-kit.org/hold on a claim. While it is there, the operator proposes nothing for the claim.
Automatic approval
A claim setting, spec.provisioning.approval: Automatic. Only an admin can set it.
Change Approval
Install, BIOS change, firmware, reboot, wipe Yes, one per operation
Release of a machine that ran its node Yes
Talos or Kubernetes upgrade, configuration change Yes, one for the rollout plan
Read the BMC, take an etcd snapshot, dry run of a configuration No
Rotation of BMC credentials, NTP servers of a BMC No, the EndpointProfile is the approval
New TLS identity of a BMC No, the EndpointProfile is the approval. The push restarts the BMC and drops its virtual media, so it waits until the approved operations behind that BMC end.

Only a member of the admin group can create or change an EndpointProfile. See Admission policies.

Task Approvals
Install 40 machines 40, one for each install. With provisioning.approval: Automatic on the claims: none.
Upgrade Talos or Kubernetes on a cluster of 40 nodes 1, for the rollout plan.
Change a configuration on a cluster of 40 nodes 1, for the rollout plan.
Change the BIOS settings of 40 machines 40, one for each machine.
Replace one machine (pk-metal replace) 2: the release of the old machine, then the install on the new machine.
  • pk-metal approve approves only the plan that it printed. If the operation changed in the meantime, nothing is approved.
  • The approval names the uid and the resourceVersion that you read, so the API server refuses it if the object changed.
  • A gate after the approval can still hold the start, see Maintenance windows and Cluster guard.