Platform upgrade planning for RKE2 and K3s with system-upgrade-controller
Automate RKE2 and K3s upgrades with system-upgrade-controller when you upgrade the same clusters repeatedly and want the node sequence written down rather than carried out by hand. Manual node work remains reasonable for a single small cluster that you upgrade once. Automation earns its place when several clusters, several node pools or a regular release cadence make consistent ordering and a record of each step worth more than the effort of writing the manifests. The controller is driven by a Plan custom resource. That resource declares which nodes to upgrade and the target version, the controller runs an upgrade Job on each selected node, and it labels the node when the Job completes. The plan is therefore a reviewable file in version control, not a sequence of commands typed on a terminal.
The most important planning decision is the path, not the tooling. The Kubernetes version skew policy requires kube-apiserver to move one minor version at a time, and kubelets may run up to three minor versions behind kube-apiserver. Plan a separate Plan or ordered set of Plans for each minor hop, and confirm the target release line that RKE2 or K3s publishes for each step against the Kubernetes version skew policy. Before any Plan is applied, check the release lifecycle on Kubernetes releases so you know whether the current version is still receiving patches. Confirm with your distribution vendor which release line matches each Kubernetes minor version, since that mapping is not covered by the facts supplied here.
Ordering matters as much as the target version. Upgrade server nodes first and agent nodes after, so the control plane is at the target version before workers begin to move, and make sure each Plan's node label selector matches only the nodes you intend to change. Rancher-managed clusters change who runs the work. For K3s clusters managed by Rancher, Rancher's UI is the supported way to start upgrades, and Rancher deploys the system-upgrade-controller for imported clusters by default, so the Plan resources you write by hand may conflict with what Rancher manages. Confirm with Rancher how its upgrade workflow and any Plans you add interact before you decide to automate a Rancher-managed cluster by hand.
What changes in a platform version upgrade
This table compares the areas that change at each RKE2 or K3s minor upgrade: Kubernetes API behavior, control plane and kubelet skew, and the upgrade mechanism itself. Read each row as a pre-upgrade check, and confirm every version-specific detail against the release notes for your exact target before scheduling the change window.
| Area | What changes | Action needed before the hop |
|---|---|---|
| Removed APIs | API versions removed in the target release stop being served, so manifests, Helm charts and operators that use them fail to apply or reconcile. | Scan manifests and charts for removed API versions and fix them before the server nodes are upgraded. Confirm the list in the target release notes. |
| Deprecated APIs and features | Deprecated fields, flags and features still work but emit warnings or are scheduled for removal in a later release. | Record warnings from the current cluster and decide which ones must be resolved before the next hop. |
| Control plane ordering | The kube-apiserver must move one minor version at a time, ahead of the other control plane components and kubelets. | Upgrade server nodes first, one minor version per hop, and confirm the API server is healthy before any agent is planned. |
| Kubelet skew | Agent kubelets may run up to three minor versions older than kube-apiserver under the version skew policy. | Use the skew policy to decide whether agents can wait, but do not let them fall outside the supported window for the cluster. |
| Plan resources | The Plan custom resource's version or channel fields point at a new target, which changes what every matched node is asked to run. | Review each Plan's version and node selectors in Git before applying it, and check which nodes the selector matches. |
| System-upgrade-controller deployment | The controller itself may be updated or replaced. For Rancher-managed clusters, Rancher manages the deployment by default. | Check which controller version is running and who owns it. Do not edit a Rancher-managed deployment by hand. |
| Node labels and job completion | The controller labels each node when its upgrade Job completes, so label names and selectors must match what the Plan expects. | Confirm the label names in the current docs and verify the labels after each node finishes. |
Backups and inventory before the first Plan runs
Four checks and one environment come before the first Plan is applied. Each one gives the team a way back, a list of what the Plans will touch, or evidence that the upgrade path works on their own layout.
Take and test an etcd snapshot
Run etcdctl snapshot save against the datastore of each server cluster before the first Plan, and store the file outside the cluster. A snapshot nobody has restored is an assumption, so rehearse the restore on the non-production cluster and record how long it took. Confirm which etcd tooling your RKE2 or K3s version bundles, since the restore commands differ by distribution and datastore type. Keep the snapshot paired with the cluster token and the server configuration files.
Inventory labels and taints
List every node label and taint the Plans will use as selectors, including the control plane and agent split. Confirm which nodes carry each label today, because a selector that matches nothing produces no upgrade and no error, and one that matches too broadly upgrades nodes out of order. Write down the intended ordering for server nodes and agent nodes, and record any taint that would block the upgrade Job from scheduling on a node.
List custom manifests and add-ons
Inventory the manifests placed in the server manifests directory, Helm charts installed through the distribution's add-on mechanism, and operators running in the cluster. Each one may depend on an API or a component version that changes at the target release. Assign an owner to each item and a retest step that runs after the upgrade. Include ingress, CNI, storage and monitoring components, because these are the most common sources of post-upgrade breakage.
Mirror the production node layout
Build a non-production cluster with the same server count, agent count, operating system images, storage class and network plugin as production. Use the same label and taint scheme so the Plans select the same nodes in both environments. Run the Plan there first and measure how long each node takes to drain, upgrade and rejoin. A smaller test cluster can miss ordering and concurrency problems that appear only with production node counts.
Confirm the rollback path
Decide what the team does if a node fails to rejoin after its Job completes. Document the snapshot restore steps, who approves a restore, and which workloads have to be checked before the next node moves. Confirm that the team can reach the cluster and its nodes out of band, because a failed upgrade can cut off the API that the controller depends on.
How the Plan rollout orders server and agent nodes
The sequence moves the control plane first, then agents, with a label-based completion check after each node so a bad upgrade stops before it spreads.
Confirm the cluster and backup baseline
Before any Plan is applied, the platform team confirms the current RKE2 or K3s version on every node, checks that the target version is one the team has approved, and takes an etcd snapshot of the server nodes so a rollback point exists. Confirm the snapshot command, flags and restore procedure against the K3s automated upgrades documentation and your distribution's own backup guide. The step is done when the snapshot is stored off the cluster and the team can name the node that holds it.
Install system-upgrade-controller and its CRDs
An engineer with cluster-admin access installs the system-upgrade-controller deployment and the Plan custom resource definitions into the cluster. For clusters managed by Rancher, check first whether Rancher already manages this deployment for the imported cluster, because a second install can conflict with it. Exact manifest URLs and namespace settings must be taken from the K3s automated upgrades documentation. The step is done when the controller pod is running and the Plan resource type is listed by the API server.
Label the server nodes for selection
The platform team applies a node label to the server (control plane) nodes that the server Plan will select, and confirms the label with a node listing before any upgrade starts. Label keys and values must match the selector in the Plan manifest, so a mismatch leads to a Plan that selects nothing or the wrong nodes. Check that the selector returns exactly the intended servers. The step is done when the label query returns the expected server set and no agent nodes.
Apply the server Plan with concurrency of one
An engineer applies the server Plan that names the target version, the node label selector and a concurrency limit. Set concurrency so that only one server upgrades at a time, which keeps the control plane quorum available for etcd and the API server. The controller starts upgrade Jobs on the selected servers and labels each node when its Job completes. The step is done when the first server reports its completion label and the Job has finished without errors.
Verify each server before the next one starts
After each server finishes, the engineer checks that the node is Ready, that it reports the target version, that the API server answers, and that etcd reports healthy members. The Plan itself does not confirm application health, so also check system pods in kube-system and any workloads with strict disruption budgets. If a check fails, hold the Plan by stopping further selection of servers and keep the snapshot available for restore. The step is done when every checked server passes and the team records the results.
Apply the agent Plan after all servers pass
Once every server carries the completion label and passes its checks, the engineer applies a separate agent Plan with its own label selector and concurrency limit. The agent Plan is applied only after the server Plan is complete, so agents do not move to a version newer than the control plane they connect to. Confirm the Plan's dependency settings in the K3s documentation, since ordering between Plans depends on how it is configured and on whether agents are scheduled after servers. The step is done when the agent Plan is accepted and its first Job starts.
Check each agent and record the rollback point
Each agent is checked after its completion label appears, including node readiness, the version reported by the kubelet, and that its workloads have rescheduled and returned to healthy status. If a problem appears, the team holds the agent Plan at its current concurrency and does not roll more nodes. Rolling back a failed K3s or RKE2 upgrade is a restore decision, so record which snapshot restores the prior state and who approves it. The step is done when all agents pass and the final versions are recorded in the change log.
How Plans, Jobs and node labels fit together during an upgrade
The flow starts with a Plan resource that selects nodes by label selector and declares the target version. The controller launches upgrade Jobs on matched server nodes, limited by the Plan's concurrency setting, and each node receives a completion label when its Job finishes. The agent Plan waits for the server Plan to complete before it selects agent nodes, so the order of hand-offs matters. Before you apply the Plans, confirm the selectors match the intended nodes and that kubectl get nodes shows the completion labels after each batch.
Illustrative flow: server Plan completes before the agent Plan starts.
How Rancher-managed clusters change the upgrade path
In a standalone RKE2 or K3s cluster, your team owns the whole upgrade path. You install the system-upgrade-controller, write the Plan resources that name the target version and the node label selectors, and apply them with kubectl or through your GitOps repository. The controller then runs upgrade Jobs on the selected nodes and labels each node when its Job completes. Nobody else changes these objects, so the Plans in your repository are the record of what happened.
- Ownership: your platform team owns the controller, the Plan manifests and the change approvals.
- Source of truth: the Plan YAML in version control, reviewed like any other infrastructure change.
- Sequencing: you decide the server Plan, the agent Plan and the wait between them.
- Rollback: you revert the manifest and reapply it, then check node labels and versions.
- Upgrade timing: you choose when the Plan is applied, so the maintenance window is yours to schedule.
Before relying on this model, confirm the controller version you deploy and the Plan fields it accepts against the K3s automated upgrades documentation.
When a K3s cluster is managed by Rancher, Rancher becomes the front door for upgrades. The K3s documentation says upgrades should be driven through the Rancher UI, and Rancher manages the system-upgrade-controller deployment for imported clusters by default. Your team still decides the target version and timing, but the Plan objects are created and reconciled by Rancher's tooling rather than by your repository. The controller and the upgrade workflow sit inside Rancher's control.
- Ownership: Rancher owns the controller deployment and the generated Plans; your team owns the upgrade decision.
- Workflow: the upgrade is initiated in the Rancher UI, which keeps the cluster's desired state in Rancher.
- Imported clusters: Rancher deploys and maintains the controller by default, so you should not install a second copy yourself.
- Audit trail: approvals and history live in Rancher, so align them with your change management records.
- Version support: check which Rancher release supports the K3s version you plan to reach before you start.
Confirm the exact Rancher behavior for your Rancher release in the K3s automated upgrades documentation before you plan the change.
The main risk in a Rancher-managed cluster is editing Plans directly with kubectl or through an outside GitOps repository. Rancher reconciles the objects it manages, so a hand edit can be overwritten on the next sync, leaving the cluster on a version nobody intended. A second risk is running two controllers, one from Rancher and one installed by your team, which can compete over the same nodes and labels. Either problem tends to appear only during the upgrade, when the cluster is least forgiving.
- Overwritten changes: a manual Plan edit may be reverted by Rancher without any warning in your repository.
- Duplicate controllers: a second controller can race the first for the same upgrade Jobs.
- Split history: the Rancher UI and your Git history disagree about what was approved and when.
- Hidden drift: node labels and versions may not match what your runbook expects.
- Support boundary: a cluster altered outside Rancher's workflow may fall outside the support path you expected.
Before any change, ask Rancher and your Rancher partner which objects Rancher owns and how to request a version change through the supported workflow.
Failure modes that stop an automated upgrade
Automated upgrades fail in a small set of recurring ways, and most of them surface only after the first Plan has started changing nodes. Each card below names one failure, the signal that shows it early, and the recovery action to take before the rollout moves on.
Failed upgrade Job leaves node cordoned
The system-upgrade-controller cordons a node before its upgrade Job runs. If the Job fails, the node can stay cordoned and out of scheduling while the Plan appears stalled. Check the Job's pod logs on that node and the node's Unschedulable status before touching anything else. Fix the cause, such as a failed download or a missing dependency, then uncordon the node deliberately so capacity is not silently lost.
K3s automated upgrades docsLabel selector matches no nodes
A Plan selects nodes by label. If the selector matches nothing, the Plan reports no work and the cluster looks healthy while it stays on the old version. The opposite error, a selector that is too broad, can pull in nodes that were meant to wait for a later window. Compare the selector against kubectl get nodes --show-labels before applying the Plan, and confirm the node count the Plan expects matches your inventory.
Agents upgraded before servers
Agent nodes must not move ahead of the server nodes that run the control plane. A Plan that upgrades agents first, or two Plans that run out of order, can leave agents on a version the servers no longer accept. Keep the server Plan and the agent Plan separate, make the agent Plan depend on the server Plan completing, and check the server version on every server node before the agent Plan is released.
Add-ons break on the new API version
Helm charts, operators and ingress or monitoring add-ons packaged with the cluster can reference API versions removed in the target Kubernetes release. The upgrade itself may succeed while a controller stops reconciling. Before the first Plan runs, scan manifests and chart output for deprecated APIs, and after each server node finishes, confirm add-on pods are Ready and their controllers log no errors.
Etcd or storage problems found mid-rollout
A rollout that restarts servers one at a time depends on etcd keeping quorum and on storage staying healthy. A member that is already degraded can lose quorum when a second server restarts. Check etcd member health and disk latency before each server Job starts, keep a fresh snapshot from before the first Plan, and pause the rollout if any member is unhealthy rather than letting the next node proceed.
What makes an RKE2 or K3s upgrade take longer
The main drivers of upgrade duration are the size of the estate and how much of it has to change. Each cluster runs its own Plan cycle, so the number of clusters, the number of nodes per cluster and the number of server and agent groups all add sequential work. Plans select nodes by label, so a cluster with many node pools, mixed operating systems or uneven drain behavior needs more checks between groups. Ask the partner to count clusters, nodes and node groups in writing, and to state whether the work runs one cluster at a time or in parallel with your change windows.
The components installed on top of the cluster often take more time than the upgrade itself. A custom CNI configuration, a storage driver such as a CSI or Longhorn deployment, ingress controllers, certificate managers and monitoring agents each need a compatibility check against the target version, and some need a planned restart or a config change. Presence of Rancher management adds a second step: for Rancher-managed clusters, the upgrade flows through the Rancher UI and the controller that Rancher manages, so access, approvals and version selection in Rancher must be scoped before the first Plan is applied. The etcd data size and snapshot strategy also matter, since the team needs a verified snapshot, and a tested restore path, before each hop.
Maintenance window constraints and the number of minor hops set the schedule. Each minor version step needs its own validation, and the version skew rules mean the control plane must move forward before the kubelets. A cluster several minor versions behind therefore needs more windows, more rollback points and more API checks than one that is current. Confirm with the partner the number of hops, the number of windows available, the rollback plan for each window and the acceptance checks after each node group. Durations are not stated here, so ask for a timeline in the written scope, and check that it lists each cluster, each hop and each validation step.
Effort drivers and what to ask for in a quote
This table lists the factors that change the effort of an RKE2 or K3s upgrade through system-upgrade-controller, how each one moves the work, and what to request in a written quote. Use it to compare scopes from different partners, since two quotes for the same cluster count can differ widely if these drivers are handled differently. The main takeaway is that the number of clusters, node roles and Rancher involvement matter more than the upgrade mechanics themselves.
| Driver | Effect on effort | What to request in a quote |
|---|---|---|
| Cluster count and distribution type | Each cluster needs its own Plan set, channel choice, maintenance window and verification. RKE2 and K3s clusters with different release lines need separate upgrade paths. | Per-cluster scope list, with distribution and current version for each cluster, and whether one pattern is reused across clusters. |
| Node count and roles | Server nodes are upgraded before agents and each server needs careful health checks. More nodes add Job runs, label checks and waiting time between nodes. | Node inventory by role (server, agent, etcd where applicable), and the concurrency setting the plan assumes for each pool. |
| Node label selectors | Plans that select nodes by label need label hygiene first. Unlabeled or mislabeled nodes are skipped or upgraded in the wrong order, which adds investigation work. | Confirmation of existing labels, who corrects them, and whether label changes are in or out of scope. |
| Custom manifests and CRDs | Custom resources, admission webhooks and CNI or ingress add-ons can block or break upgrades. Each one needs compatibility checks against the target version. | List of custom manifests, CRDs and webhooks, and a compatibility check for each against the target release. |
| Helm charts and operators | Charts and operators bundled with the cluster may need version bumps or deprecated API fixes before the upgrade. Each chart adds test and rollback steps. | Inventory of charts and operators with versions, and whether chart changes are part of the upgrade or handled by your team. |
| Rancher involvement | Rancher-managed clusters are upgraded through the Rancher UI and Rancher manages the system-upgrade-controller deployment for imported clusters by default. Plans written directly against standalone clusters may conflict with Rancher's own management, so the approach changes. | Whether each cluster is standalone or Rancher-managed, who holds Rancher admin access, and how the plan will be reconciled with Rancher's upgrade flow. |
| Backup and restore testing | A tested etcd snapshot and restore path takes more effort than taking a snapshot. Restore tests in a non-production copy add environment setup and verification time. | Whether a restore test is included, where it runs, what evidence is delivered, and who approves the rollback decision. |
| Number of minor hops | Each minor version step is a separate upgrade cycle with its own API removal check and verification. Clusters several versions behind need more rounds of testing. | Planned hop sequence from the current version to the target, and whether each hop is tested before the next is scheduled. |
Questions teams ask before upgrading RKE2 or K3s
Can our team automate RKE2 or K3s upgrades without outside help?
Yes, if your team can write and review Kubernetes manifests, operate the cluster and handle the node-level changes an upgrade touches. The system-upgrade-controller uses a Plan custom resource to declare which nodes to upgrade and to which version, runs upgrade Jobs on the selected nodes and labels each node when its Job completes. The harder parts are not the Plan itself: they are checking deprecated APIs in your workloads, confirming add-on compatibility, testing on a non-production cluster and deciding the node selection and concurrency. Ask whether your staff have done this on a non-production cluster first, and whether the upgrade path is written down and repeatable.
How much does an RKE2 or K3s upgrade cost, and what drives the price?
Cost depends mostly on the written scope, which is agreed before work starts and quoted from it. The main components are the preparation work (inventory, deprecated API checks, add-on review), the Plan and node configuration, the test runs, the production window and the handover documentation. Cost goes up with the number of clusters, the number of hops between your current and target versions, the number of add-ons and custom resources, and whether the clusters are air-gapped or use a private registry. Ongoing upgrades, patching and testing can be covered by a retainer. Ask for a quote that lists each component, what is one-time and what recurs, and what is excluded.
How long does an upgrade take, and what does the timeline depend on?
Duration depends on cluster count, node count, the version gap, change windows and how many workloads need fixes before the move. The timeline is set in the written scope, so ask for the schedule to show each stage: inventory, test upgrade, fixes, production window and checks after each node group. Upgrades run server nodes first and then agent nodes, so the rollout time grows with node count and with the concurrency you allow. Dependencies include your change approval process, application owners who must sign off on tests, and the availability of a staging cluster that matches production.
What does the upgrade need from our staff?
Plan for named people in four roles: a platform owner who approves the scope and change windows, an engineer who can read Kubernetes manifests and node logs, application owners who can test their workloads after each step, and a security or compliance contact if the change affects access controls or evidence. Your team also needs access to the cluster, the node operating systems, the private registry if one is used and the Git repository that holds the Plan manifests. Ask the provider which of these tasks they will do, which they expect your staff to do and how knowledge is transferred.
What happens if an upgrade fails partway through?
A failed upgrade is a planned case, and the answer depends on the rollback path you agreed before the window opened. Because the controller labels each node as its Job completes, you can see which nodes finished and which did not, and stop the rollout before it reaches the rest of the cluster. Before the window, confirm that you have a current etcd snapshot, that the Plan can be paused or edited, and that someone is authorized to decide whether to continue or roll back. Ask the provider to document the restore steps and to test them on a non-production cluster.
Should we rebuild the cluster instead of upgrading when we are far behind?
Rebuilding is often the better choice when the cluster is many minor versions behind, when its manifests rely on APIs removed in later releases, or when its add-ons no longer support the target version. Upgrading one minor version at a time keeps each step testable, but every hop adds checks and risk. Compare the two paths by listing the API removals at each hop, the add-on and runtime compatibility work, the effort to move workloads to a new cluster and the downtime each path needs. Confirm the Kubernetes version your cluster is on against the release page and the support window before you decide.
How do Rancher-managed clusters change the upgrade process?
If Rancher manages the cluster, upgrades should be managed through the Rancher UI rather than by applying Plans directly. Rancher manages the system-upgrade-controller deployment for imported clusters by default, so changing the Plan outside Rancher can conflict with what Rancher expects. Before you start, confirm which clusters are Rancher-managed, who has the right to trigger upgrades in Rancher and whether your change process records the Rancher version alongside the K3s or RKE2 version. Ask the provider to confirm the exact Rancher and cluster configuration in your environment.
How DeployOpen scopes and delivers RKE2 and K3s upgrades
DeployOpen treats an automated RKE2 or K3s upgrade as a written, fixed-scope engagement that starts with your current cluster state and ends with a documented, repeatable upgrade path. The work runs inside your own infrastructure, with the Plan resources, node selectors and ordering rules agreed with your platform and security teams before any node is touched.
How we scope
- We inventory cluster distribution, current versions, node roles and whether each cluster is Rancher-managed or standalone.
- The written scope names the Plan resources, server and agent ordering, label selectors and concurrency limits that will be delivered.
- We confirm which add-ons, workloads and deprecated APIs must be checked before each hop, and which of these are your responsibility.
- Engagements are fixed-scope, with deliverables and timelines agreed in writing before work starts.
How we build
- We write system-upgrade-controller Plan manifests for server nodes first, then agent nodes, stored in your own Git repository.
- We set node label selectors and concurrency so only planned nodes upgrade at once and workloads keep their capacity.
- We test each Plan against a non-production cluster and record the labels, Job results and rollback steps for each hop.
- Where a cluster is Rancher-managed, we document how upgrades are handled through the Rancher UI instead of duplicating the controller.
How we hand over
- You receive the Plan manifests, label conventions, runbooks and verification checklists written for your operators.
- Your team walks through a live upgrade run with us so the sequence, Job logs and label checks are familiar before we step back.
- Documentation covers version-skew limits, etcd backup steps before each upgrade and what to check after every node completes.
- All configuration sits in your infrastructure and repositories, so your team keeps full ownership of the upgrade process.
How we support
- Ongoing support, upgrade execution for future minor releases and continuous testing are available as retainers.
- We can review each new Kubernetes release against your Plans and add-on compatibility before your team schedules the change.
- Support scope, response expectations and included upgrades are defined in the retainer agreement, which you should review with us.
- Ask us to confirm which parts of the upgrade remain with your team under any retainer before signing.

