Skip to content

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

An Asset leads through the ledger to a ManagementEndpoint and a Host. A HostClaim binds the Host and proposes a HostOperation. After approval, the operation boots the machine from virtual media.Assetyou writeLedgerMAC → addressManagementEndpoint-BMCRedfishTalosNodeyou writeHostClaim-Host-MachineoffYouapproverHostOperation-Media storeinstaller + configmakesproposesvirtual mediapower cycle

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.yaml
  1. 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.yaml
  2. Find the BMC. The Asset controller finds the BMC MAC address in the ledger. It makes a ManagementEndpoint with the address.

    kubectl get managementendpoints
  3. Read the BMC. The ManagementEndpoint controller logs in over Redfish. It reads the inventory and compares the serial number with the Asset.

    Connecting → Inventorying → Verifying → Ready
  4. Host. The operator makes a Host for the machine. The serial numbers agree, so the Host is Available.

    kubectl get hosts
  5. Claim. 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.yaml
  6. Propose. The claim controller proposes one boot HostOperation. The operation waits for a person. The machine does not change.

    pk-metal status
  7. Approve 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-…
  8. 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
  1. Connect the BMC to the network and add its MAC address to the ledger.
  2. Write an Asset and its credentials Secret. Follow Enroll hosts.
  3. The Asset controller makes a ManagementEndpoint. The ManagementEndpoint controller reads the BMC over Redfish.
  4. The operator makes a Host. The serial numbers must agree, see Identity.
  5. Write a TalosCluster and a TalosNode. The TalosNode controller renders the machine config, see Talos rendering.
  6. Write a HostClaim that names the TalosNode in spec.os. Follow Install hosts.
  7. The HostClaim controller binds the Host and proposes a boot HostOperation.
  8. Approve the operation with pk-metal approve. See Approval flow.
  9. The HostOperation controller boots the machine from virtual media, see Virtual media boot.
  10. The node checks in. The claim records the hand-off in status.handOff.
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 runs these actions in sequence:

  1. EjectMedia on each slot, to start from empty slots.
  2. InsertMedia for the installer and for the node configuration.
  3. SetBootOverride to boot once from the virtual CD.
  4. PowerCycle.
  5. AwaitCheckIn until the node runs its configuration.
  6. EjectMedia, the configuration first, because it holds secrets.

A BMC with one slot gets one installer with the configuration inside, see One-slot BMC.

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