Skip to content

Day 2

Upgrade Talos

Move every node of one cluster to a new Talos release, one node at a time.

A Talos upgrade rollout

1 / 7

A TalosRollout upgrades the control planes one at a time, pauses after the first node, then upgrades the workers.YouApproverTalosRollout-upgradeapproveresumecp-1v1.14.6cp-2v1.14.6cp-3 (leader)v1.14.6w-1v1.14.6w-2v1.14.6control planes, one at a timeworkers

Ask

You set the new release. The operator proposes one TalosRollout with a plan. No machine changes.

pk-metal upgrade talos prod v1.14.7
  1. Ask. You set the new release. The operator proposes one TalosRollout with a plan. No machine changes.

    pk-metal upgrade talos prod v1.14.7
  2. Approve. A person reads the plan and approves it. The approval names the plan hash.

    pk-metal rollout approve prod-talosupgrade-1a2b3c4d
  3. First node. The first control plane drains, upgrades, reboots and becomes Ready. etcd must be healthy again.

    drain → talosUpgrade → waitNodeReady → waitEtcdHealthy → uncordon
  4. Pause. The rollout always stops after the first node. Examine the node, then resume.

    pk-metal rollout resume prod-talosupgrade-1a2b3c4d
  5. Control planes. The other control planes follow, one at a time. The etcd leader goes last.

  6. Workers. Then the workers. Between two nodes, the operator checks etcd and all Kubernetes nodes again.

  7. Complete. Every node runs the new release. The rollout is Complete.

pk-metal checks each Talos step against the Talos libraries in its build. A build knows the Talos releases up to its own Talos minor. For a newer minor, pk-metal upgrade and the rollout plan stop with the message upgrades to version … are not supported.

  1. Read the Talos version of the libraries in the pk-metal release notes.

  2. If the new Talos minor is newer, upgrade pk-metal first.

  1. Ask for the new release. The command changes only the TalosCluster spec. It waits for the proposal and shows the plan.

    Terminal window
    pk-metal upgrade talos prod v1.14.7

    The output names the rollout, for example prod-talosupgrade-1a2b3c4d.

  2. Approve the plan. If your site forbids self-approval, ask a second person to approve it.

    Terminal window
    pk-metal rollout approve prod-talosupgrade-1a2b3c4d

    The rollout starts on the first control plane.

  3. Monitor the first node.

    Terminal window
    pk-metal rollout show prod-talosupgrade-1a2b3c4d

    The Paused condition has the reason PausedAfterFirstNode.

  4. Make sure that the first node runs the new release and is Ready.

    Terminal window
    kubectl get talosnodes

    The VERSION column shows v1.14.7 for the first node.

  5. Resume the rollout.

    Terminal window
    pk-metal rollout resume prod-talosupgrade-1a2b3c4d

    The other nodes follow, one at a time.

  • pk-metal rollout show <rollout> shows Complete=True.
  • pk-metal status shows one version in the TALOS WANT/RUN column of the cluster.
  • Each TalosNode has VersionCurrent=True.
  • To stop before the next node: pk-metal rollout pause <rollout>.
  • To stop for good: pk-metal rollout abort <rollout>. A node that runs finishes. The other nodes are Skipped.
  • The operator does not downgrade Talos. pk-metal upgrade refuses a lower version.

The rollout does not stage an upgrade. A TalosUpgrade action with stage: true writes the image and reboots the node at once. The upgrade runs early in the next boot. Talos does not drain the node in this mode, so put a drain action before it. Use it only when open files stop a normal upgrade.

What you see Go to
The rollout stops with RolloutFailed Operation failed
Progressing shows WaitingForHealth for a long time Rollout paused or plan changed
Complete=False with PlanChanged Rollout paused or plan changed
A drain does not end Drain stuck
A node does not come back Node not ready