Day 1
Install hosts
Install Talos on each machine and make the cluster Available.
Before you start
Section titled “Before you start”- Each machine has a Host in the phase
Available. See Enroll hosts. - Each node has a TalosNode with
Rendered=True. See Define a cluster. - You are a member of the admin group (
pk-metal:adminsby default). Only this group can setspec.oson a claim. Cluster admin is not enough. See The admin group and the approvers. - For a BMC with one usable media slot, the overlay has the media store. See One-slot BMCs.
- A person who can approve is available. The ClusterRole
pk-metal-approvergives this permission.
What happens
Section titled “What happens”Install one machine
1 / 5
Claim
You apply a HostClaim. The HostClaim controller binds a free Host to it.
kubectl apply -f claim.yamlClaim. You apply a HostClaim. The HostClaim controller binds a free Host to it.
kubectl apply -f claim.yamlPropose. The controller proposes a HostOperation. The operation waits for approval. The machine does not change.
pk-metal statusApprove. You approve the operation. The HostOperation controller starts it.
pk-metal approve install-node-01Boot. 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 → PowerCycleCheck in. Talos starts from the disk and the node checks in. The operation ejects the media and succeeds. The Host is Provisioned.
AwaitCheckIn → EjectMedia
-
Write one HostClaim for each machine.
spec.os.nodeRefnames the TalosNode.claims/cp-1.yaml apiVersion: metal.platform-kit.org/v1alpha1kind: HostClaimmetadata:name: cp-1namespace: defaultspec:assetRef:name: sim-0001labels:role: controlplaneos:nodeRef:name: cp-1 -
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 withonly an admin, your login does not have the group. -
Show the operations that wait.
Terminal window pk-metal statusThe
OPERATIONtable showsAwaitingApprovalfor each install. -
Read the plan of one operation and approve it. Type
ywhen the command asks.Terminal window pk-metal approve pk-metal/provision-simhw2288v5000397-0f3c9a1e -
Approve the other operations in the same way. You can give several names in one command. The command asks about each plan.
-
Monitor the hosts.
Terminal window kubectl get hosts -wEach Host goes to
Provisioning, then toProvisioned. -
Monitor the cluster. The operator bootstraps etcd when all control planes answer.
Terminal window kubectl get taloscluster prodThe column
AVAILABLEshowsTrue. -
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 -
Write the talosconfig to a file.
talosctluses it to speak to the nodes.Terminal window kubectl -n pk-metal get secret prod-talosconfig -o jsonpath='{.data.talosconfig}' | base64 -d > prod.talosconfig -
Ask one node for its version. Use the address of the node.
Terminal window talosctl --talosconfig prod.talosconfig -n 10.0.0.11 version
Verify
Section titled “Verify”kubectl --kubeconfig prod.kubeconfig get nodesEach node is Ready. The published kubeconfig expires after the TTL of the cluster (24 hours by default).
Say no to an install
Section titled “Say no to an install”- Remove
spec.osfrom the claim. The operator deletes the install operations that did not finish. - Or hold the claim with pk-metal hold. See Approve, hold, retry and abort.
- Do not delete only the proposed operation. The operator proposes the same plan again.
If it fails
Section titled “If it fails”| 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 |
Related
Section titled “Related”- pk-metal approve, pk-metal status, HostOperation
- Approval and Virtual media boot
- Rack to running node
- Back up etcd: set a backup policy on the new cluster at once.