Skip to content

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

A change to the TalosCluster gives a TalosRollout. After approval, the rollout changes one node at a time: control planes first, the etcd leader last, then the workers.TalosClusterspec.talosVersionTalosRollout-Youask, approve, resumeupgradeproposesapprovesone HostOperation per nodecontrol planes, one at a timeworkerscp-1v1.11cp-2v1.11cp-3v1.11w-1v1.11w-2v1.11

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.0
  1. 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.0
  2. Propose. 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-1a2b3c4d
  3. Approve. A person approves the plan hash that they read. From now on the plan is frozen.

    pk-metal rollout approve lab-talosupgrade-1a2b3c4d
  4. First node. The rollout makes one HostOperation for the first control plane: drain, talosUpgrade, waitNodeReady, waitEtcdHealthy, uncordon.

    drain → talosUpgrade → waitNodeReady → waitEtcdHealthy → uncordon
  5. Pause. After the first node, the rollout always pauses. Examine the node. Then resume the rollout.

    pk-metal rollout resume lab-talosupgrade-1a2b3c4d
  6. Control 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: WaitingForHealth
  7. Workers. Then the workers. spec.maxUnavailableWorkers sets how many go at the same time. The default is one.

    spec.maxUnavailableWorkers: 2
  8. Complete. Each node runs the new release. The rollout is Complete. The TalosCluster condition VersionsCurrent is True.

    pk-metal status
  1. Change the TalosCluster or a TalosNode:
  2. The Rollout proposer compares the spec with the machines and proposes a rollout. See Rollouts and Drift.
  3. Read the plan with pk-metal rollout.
  4. A person approves the plan hash. If your site forbids self-approval, that is not the proposer.
  5. The TalosRollout controller runs the first node, then pauses.
  6. Examine the node. Resume the rollout with pk-metal rollout.
  7. The control planes go one at a time, the etcd leader last. Then the workers go.
  8. Before each node, the rollout reads etcd and the Kubernetes nodes again.
  9. The rollout is Complete.
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.

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>
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