Workflow
Rack to running node
This workflow follows one machine from the rack to a ready Talos node. You write four objects. The operator writes the others, and it changes the machine only after a person approves.
Rack to running node
1 / 8
Enroll
You write an Asset and a credentials Secret for the machine. The Asset gives the serial number and the MAC address of the BMC.
kubectl apply -f asset.yamlEnroll. You write an Asset and a credentials Secret for the machine. The Asset gives the serial number and the MAC address of the BMC.
kubectl apply -f asset.yamlFind the BMC. The Asset controller finds the BMC MAC address in the ledger. It makes a ManagementEndpoint with the address.
kubectl get managementendpointsRead the BMC. The ManagementEndpoint controller logs in over Redfish. It reads the inventory and compares the serial number with the Asset.
Connecting → Inventorying → Verifying → ReadyHost. The operator makes a Host for the machine. The serial numbers agree, so the Host is Available.
kubectl get hostsClaim. You write a TalosNode and a HostClaim that names it. The HostClaim controller binds the Host to the claim.
kubectl apply -f talosnode.yaml -f claim.yamlPropose. The claim controller proposes one boot HostOperation. The operation waits for a person. The machine does not change.
pk-metal statusApprove and boot. You approve. The operation mounts the installer and the node configuration, sets a one-time boot device and power cycles the machine.
pk-metal approve -n pk-metal provision-simhw2288v5000398-…Check in. Talos installs to the disk and the node checks in. The operation ejects the media and succeeds. The Host is Provisioned.
AwaitCheckIn → EjectMedia
- Connect the BMC to the network and add its MAC address to the ledger.
- Write an Asset and its credentials Secret. Follow Enroll hosts.
- The Asset controller makes a ManagementEndpoint. The ManagementEndpoint controller reads the BMC over Redfish.
- The operator makes a Host. The serial numbers must agree, see Identity.
- Write a TalosCluster and a TalosNode. The TalosNode controller renders the machine config, see Talos rendering.
- Write a HostClaim that names the TalosNode in
spec.os. Follow Install hosts. - The HostClaim controller binds the Host and proposes a boot HostOperation.
- Approve the operation with pk-metal approve. See Approval flow.
- The HostOperation controller boots the machine from virtual media, see Virtual media boot.
- The node checks in. The claim records the hand-off in
status.handOff.
Who does what
Section titled “Who does what”| Step | Object | Written by | Your action |
|---|---|---|---|
| Enroll | Asset, Secret | You | kubectl apply |
| Find the BMC | ManagementEndpoint | Asset controller | None |
| Read the machine | Host | Host controller | Read pk-metal status |
| Configure the node | TalosCluster, TalosNode | You | kubectl apply |
| Claim | HostClaim | You | kubectl apply |
| Propose the boot | HostOperation | HostClaim controller | None |
| Approve | HostOperation spec.approval |
You | pk-metal approve |
| Boot and install | HostOperation steps | HostOperation controller | Watch with pk-metal top |
The boot operation
Section titled “The boot operation”The boot operation runs these actions in sequence:
- EjectMedia on each slot, to start from empty slots.
- InsertMedia for the installer and for the node configuration.
- SetBootOverride to boot once from the virtual CD.
- PowerCycle.
- AwaitCheckIn until the node runs its configuration.
- EjectMedia, the configuration first, because it holds secrets.
A BMC with one slot gets one installer with the configuration inside, see One-slot BMC.
Try it in the lab
Section titled “Try it in the lab”- Start the lab with mise run lab:up. It makes simulated BMCs and enrolls them.
- Approve the installs with mise run lab:approve.
- Follow Your first cluster in the lab for all steps.
Runbooks for this flow
Section titled “Runbooks for this flow”| Symptom | Runbook |
|---|---|
The ManagementEndpoint is Unreachable |
BMC unreachable |
The ManagementEndpoint is Mismatch |
Host in Mismatch |
The HostClaim is Ambiguous |
Claim ambiguous |
The boot operation is Failed |
Operation failed |
| The node does not check in | Node not ready |