Skip to content

Upgrade k3s to v1.24#2661

Draft
Copilot wants to merge 3 commits into
masterfrom
copilot/upgrade-k3s-1-23-to-1-24
Draft

Upgrade k3s to v1.24#2661
Copilot wants to merge 3 commits into
masterfrom
copilot/upgrade-k3s-1-23-to-1-24

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 6, 2026

Upgrades the k3s release version to v1.24 across the Ansible cluster configuration and adds upgrade Plan resources for the system-upgrade-controller to automate rolling the upgrade on live nodes.

Changes

  • k8s/ansible/group_vars/all.yml: k3s_release_version: v1.21v1.24 (for fresh installs)
  • cluster/core/system-upgrade-controller/plans.yaml: Added k3s-server and k3s-agent upgrade Plans targeting v1.24.17+k3s1
  • cluster/core/system-upgrade-controller/kustomization.yaml: Added plans.yaml to resources so Flux reconciles the Plans

How the upgrade works

The system-upgrade-controller Plans handle rolling the upgrade across the live cluster:

  • k3s-server — upgrades control-plane nodes one at a time (concurrency: 1), cordoning each node during the upgrade
  • k3s-agent — upgrades worker nodes after the server plan completes, using a prepare step to wait for servers first

Both plans use the rancher/k3s-upgrade image.

Notes

  • MixedProtocolLBService feature gate is retained in kube-apiserver-arg — it graduated to beta (on by default) in 1.24, but keeping it explicit is harmless and avoids any edge-case regression.
  • xanmanning.k3s role (v2.12.1) supports k3s 1.24.

Copilot AI linked an issue May 6, 2026 that may be closed by this pull request
Copilot AI changed the title [WIP] Upgrade k3s from version 1.23 to 1.24 Upgrade k3s to v1.24 May 6, 2026
Copilot AI requested a review from jeffborg May 6, 2026 22:26
@jeffborg
Copy link
Copy Markdown
Owner

jeffborg commented May 6, 2026

@copilot there is a upgrade controller in here

Copy link
Copy Markdown
Contributor Author

Copilot AI commented May 6, 2026

@copilot there is a upgrade controller in here

Added upgrade Plan resources for the system-upgrade-controller in commit 9f6893c. This creates:

  • k3s-server plan — upgrades control-plane nodes to v1.24.17+k3s1 one at a time (concurrency: 1)
  • k3s-agent plan — upgrades worker nodes after the server plan completes

Both use the rancher/k3s-upgrade image and cordon nodes during the upgrade.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

upgrade k3s 1.23 -> 1.24

2 participants