The TalosRollout lane changes a running cluster one node at a time: a Talos upgrade, a Kubernetes upgrade, or a config change.
rolloutproposer proposes the TalosRollout that a cluster needs. talosrollout plans it and, after one approval , runs it.
Reconciles TalosRollout (talosrollout) and TalosCluster (rolloutproposer).Writes The rollout plan and step status , one HostOperation for each node step, and new rollouts (proposer). Approval One approval for the whole plan. It names the planHash that the person read. Talks to The Talos API of the control planes (etcd gate), the Kubernetes API of the cluster, and the image registry to pin installer images . Requeue 1 minute while the plan waits for approval. 15 seconds while a step runs or a gate holds. Metrics pk_metal_rollout_nodes_done and pk_metal_rollout_nodes_total.
Controller
Kind
Relation
Why a change starts a pass
talosrollout
TalosRollout
For
Approval, pause, resume or abort .
talosrollout
HostOperation
Owns
A node step moved.
talosrollout
TalosNode
Watches, the unapproved rollouts of its cluster
Drift or version of a node changed. The plan is made again.
rolloutproposer
TalosCluster
For
The target versions changed.
rolloutproposer
TalosNode , TalosRollout
Watches
A node drifted, or a rollout ended.
A rollout plan: control planes one at a time, then kube-proxy for a Kubernetes upgrade, then workers up to maxUnavailableWorkers at once. A canary pause follows the first node. cp-1 first node pause resume? cp-2 cp-3 kube-proxy k8s only worker-1 worker-2 worker-3 health gate before each start: etcd healthy, all Nodes ReadyControl planes go one by one. Workers go in groups. A person resumes after the first node.
The rollout reconcile loop: plan while unapproved; once approved, check the plan hash, observe steps, stop on failure or abort, pause, gate, start the next steps. Read the rollout 1 unapproved Plan pass not approved: write plan, planHash Approval covers the plan? 2 no Complete = False PlanChanged, nothing ran Observe the running steps 3 Failed or aborted? 4 yes Skip pending steps RolloutFailed / RolloutAborted Pick the next steps 5 none left Complete = True RolloutSucceeded Paused? 6 yes Paused = True PausedByPerson / CanaryPause Health gate earlier rollout, etcd, Nodes 7 Progressing WaitingForHealth Start: create HostOperations 8 next pass: 15 s
Read the rollout . If nobody approved it, plan it. List the nodes that need the change, pin each installer image by digest, and write the plan and its hash. Plan again each minute.
Check that the approval names the current planHash. The approval is write-once, so a plan that moved after approval ends the rollout. Nothing ran.
Observe each running step through its operation , or the kube-proxy DaemonSet.
If a step failed or a person aborted , mark the pending steps Skipped. Wait for running steps to finish. Nodes that changed stay changed.
Pick the next steps: control planes and kube-proxy one at a time, workers up to maxUnavailableWorkers.
Pause if spec.paused is set, or after the first node until a person resumes it with the plan hash .
Gate: no earlier rollout of the cluster runs, every etcd member answers and votes, and every Kubernetes Node is Ready. The gate reads live, not from a status .
Start each step: create a HostOperation with rolloutRef and no approval of its own.
rolloutproposer acts only on a bootstrapped cluster with no unfinished rollout . It proposes the first need in this order:
A TalosUpgrade when a node runs another Talos version than the spec .
A KubernetesUpgrade when the API runs another Kubernetes version.
A Config rollout for the nodes whose dry run reports drift .
The name comes from a hash of what it proposes, so the same need is not proposed twice. A failed or aborted rollout stays until a person deletes it.
One approval, bound to a hash The executor runs a rollout operation only while the rollout approval covers its plan hash , node, host and actions . See HostOperation controller . Canary pause After the first node succeeds, the rollout stops until the annotation os.platform-kit.org/resume equals the plan hash. Use pk-metal rollout . One rollout for each cluster Two rollouts side by side could take two control planes down at once.
Condition
Reasons
Approved
AwaitingApproval, PlanApproved, PlanChanged
Planned
PlanReady, PlanBlocked
Progressing
RolloutNotStarted, NodeRunning, WaitingForHealth, CanaryPause, PausedByPerson, RolloutSucceeded, RolloutFailed, RolloutAborted, PlanChanged
Paused
PausedByPerson, CanaryPause, NotPaused
Complete
RolloutSucceeded, NothingToDo, RolloutFailed, RolloutAborted, PlanChanged
API group Resources Verbs Scope Marker in os.platform-kit.orgtalosrolloutsget list watch create delete cluster talosrollout_controller.goos.platform-kit.orgtalosrollouts/statusupdate cluster talosrollout_controller.goos.platform-kit.orgtalosrollouts/finalizersupdate cluster talosrollout_controller.goos.platform-kit.orgtalosclustersget list watch cluster talosrollout_controller.goos.platform-kit.orgtalosnodesget list watch cluster talosrollout_controller.gometal.platform-kit.orghostsget list watch cluster talosrollout_controller.gometal.platform-kit.orghostoperationsget list watch create cluster talosrollout_controller.gocoresecretsget list watch namespace pk-metal talosrollout_controller.goos.platform-kit.orgtalosrolloutsget list watch create cluster talosrollout_proposer.go