Skip to content

Day 1

Install hosts

Install Talos on each machine and make the cluster Available.

Install one machine

1 / 5

A HostClaim binds a Host. A HostOperation, after approval, boots the machine through its BMC with virtual media.YouHostClaimPendingHostOperation-BMCRedfishHostAvailableMedia storeinstaller + configMachineoffbindsproposesapprovesRedfishmountspower cyclechecks in

Claim

You apply a HostClaim. The HostClaim controller binds a free Host to it.

kubectl apply -f claim.yaml
  1. Claim. You apply a HostClaim. The HostClaim controller binds a free Host to it.

    kubectl apply -f claim.yaml
  2. Propose. The controller proposes a HostOperation. The operation waits for approval. The machine does not change.

    pk-metal status
  3. Approve. You approve the operation. The HostOperation controller starts it.

    pk-metal approve install-node-01
  4. Boot. The operation mounts the installer and the node configuration as virtual media. It sets a one-time boot device and power cycles the machine.

    InsertMedia → SetBootOverride → PowerCycle
  5. Check in. Talos starts from the disk and the node checks in. The operation ejects the media and succeeds. The Host is Provisioned.

    AwaitCheckIn → EjectMedia
  1. Write one HostClaim for each machine. spec.os.nodeRef names the TalosNode.

    claims/cp-1.yaml
    apiVersion: metal.platform-kit.org/v1alpha1
    kind: HostClaim
    metadata:
    name: cp-1
    namespace: default
    spec:
    assetRef:
    name: sim-0001
    labels:
    role: controlplane
    os:
    nodeRef:
    name: cp-1
  2. Apply the claims with your login that is in the admin group.

    Terminal window
    kubectl apply -f claims/

    Each claim is Bound. The operator proposes one install operation for each machine. If the API server refuses the claim with only an admin, your login does not have the group.

  3. Show the operations that wait.

    Terminal window
    pk-metal status

    The OPERATION table shows AwaitingApproval for each install.

  4. Read the plan of one operation and approve it. Type y when the command asks.

    Terminal window
    pk-metal approve pk-metal/provision-simhw2288v5000397-0f3c9a1e
  5. Approve the other operations in the same way. You can give several names in one command. The command asks about each plan.

  6. Monitor the hosts.

    Terminal window
    kubectl get hosts -w

    Each Host goes to Provisioning, then to Provisioned.

  7. Monitor the cluster. The operator bootstraps etcd when all control planes answer.

    Terminal window
    kubectl get taloscluster prod

    The column AVAILABLE shows True.

  8. Write the admin kubeconfig to a file.

    Terminal window
    kubectl -n pk-metal get secret prod-kubeconfig -o jsonpath='{.data.kubeconfig}' | base64 -d > prod.kubeconfig
  9. Write the talosconfig to a file. talosctl uses it to speak to the nodes.

    Terminal window
    kubectl -n pk-metal get secret prod-talosconfig -o jsonpath='{.data.talosconfig}' | base64 -d > prod.talosconfig
  10. Ask one node for its version. Use the address of the node.

    Terminal window
    talosctl --talosconfig prod.talosconfig -n 10.0.0.11 version
Terminal window
kubectl --kubeconfig prod.kubeconfig get nodes

Each node is Ready. The published kubeconfig expires after the TTL of the cluster (24 hours by default).

What you see Go to
Operation Failed Operation failed
Claim Ambiguous Claim ambiguous
Claim blocked on DiskNotWiped Disk not wiped
Operation fails at insertMedia Media slot busy or missing
The install waits, and the BootAsset shows BuilderUnavailable The BMC has one usable slot, and the overlay has no media store. See One-slot BMCs.
Host Provisioning for a long time, node not Ready Node not ready
Cluster Bootstrapped=False Bootstrap refused