Workflow
Day-2 change
A change to a cluster in use goes to the machines one node at a time. A TalosRollout holds the plan, a person approves it, and the operator makes one HostOperation for each node.
Roll a change through a cluster
1 / 8
Ask
You ask for a new Talos release. The command changes only spec.talosVersion of the TalosCluster. No machine changes.
pk-metal upgrade talos lab v1.12.0Ask. You ask for a new Talos release. The command changes only spec.talosVersion of the TalosCluster. No machine changes.
pk-metal upgrade talos lab v1.12.0Propose. The rollout proposer sees that the nodes run another version. It writes a TalosRollout. The plan lists each node in order and has a planHash.
pk-metal rollout show lab-talosupgrade-1a2b3c4dApprove. A person approves the plan hash that they read. From now on the plan is frozen.
pk-metal rollout approve lab-talosupgrade-1a2b3c4dFirst node. The rollout makes one HostOperation for the first control plane: drain, talosUpgrade, waitNodeReady, waitEtcdHealthy, uncordon.
drain → talosUpgrade → waitNodeReady → waitEtcdHealthy → uncordonPause. After the first node, the rollout always pauses. Examine the node. Then resume the rollout.
pk-metal rollout resume lab-talosupgrade-1a2b3c4dControl planes. The control planes go one at a time. The etcd leader goes last. Before each node, the rollout reads etcd and the Kubernetes nodes again.
Progressing: WaitingForHealthWorkers. Then the workers. spec.maxUnavailableWorkers sets how many go at the same time. The default is one.
spec.maxUnavailableWorkers: 2Complete. Each node runs the new release. The rollout is Complete. The TalosCluster condition VersionsCurrent is True.
pk-metal status
- Change the TalosCluster or a TalosNode:
- for a Talos upgrade, use pk-metal upgrade;
- for a configuration change, edit the spec;
- to reboot each node in turn, write a TalosRollout of kind
Reboot.
- The Rollout proposer compares the spec with the machines and proposes a rollout. See Rollouts and Drift.
- Read the plan with pk-metal rollout.
- A person approves the plan hash. If your site forbids self-approval, that is not the proposer.
- The TalosRollout controller runs the first node, then pauses.
- Examine the node. Resume the rollout with pk-metal rollout.
- The control planes go one at a time, the etcd leader last. Then the workers go.
- Before each node, the rollout reads etcd and the Kubernetes nodes again.
- The rollout is
Complete.
Rollout kinds
Section titled “Rollout kinds”| Kind | Proposed by | Actions on each node | Reboot |
|---|---|---|---|
TalosUpgrade |
The operator, when a node runs another version | Drain, TalosUpgrade, WaitNodeReady, Uncordon | Yes |
KubernetesUpgrade |
The operator, when the API server runs another version | TalosApplyConfig, WaitNodeReady | Only if Talos needs it |
Config |
The operator, when a node drifts | TalosApplyConfig, WaitNodeReady | Only if Talos needs it |
Reboot |
You | Drain, TalosReboot, WaitNodeReady, Uncordon | Yes |
A control plane also gets WaitEtcdHealthy before the uncordon. A node that does not reboot is not drained.
Control the rollout
Section titled “Control the rollout”| You want to | Command |
|---|---|
| See the plan | pk-metal rollout show <rollout> |
| Approve | pk-metal rollout approve <rollout> |
| Continue after the pause | pk-metal rollout resume <rollout> |
| Stop before the next node | pk-metal rollout pause <rollout> |
| Stop for all time | pk-metal rollout abort <rollout> |
Other day-2 changes
Section titled “Other day-2 changes”- A single reboot: pk-metal reboot proposes one operation for one node.
- BIOS and firmware: see Convergence.
- When work may start: see Maintenance windows.
Try it in the lab
Section titled “Try it in the lab”- mise run lab:day2 reboots nodes and applies a configuration change.
- mise run lab:upgrade upgrades a lab that is one release behind.
- Day 2 in the lab shows each step.
Runbooks for this flow
Section titled “Runbooks for this flow”| Symptom | Runbook |
|---|---|
A node step failed, the rollout is RolloutFailed |
Operation failed |
The rollout waits with WaitingForHealth |
etcd unhealthy or quorum lost |
| A node is not Ready after its step | Node not ready |