Hi Suse / Rancher community !
Here is my situation:
I have few experience on Rancher and K3S.
I have a K3S cluster v1.28.15+3s1 running on Rancher v.2.8.3 and Helm v2.16.8.
I need to update to K3S v1.31 but it is not listed by Rancher Manager.
From my understanding I need to update to Helm3 and update Rancher before updating K3S.
I made a procedure to follow based on Rancher Docs, Jim’s Garage Video and ChatGPT.
Can you (the Rancher community) tell me if the procedure below is good before I try it on my lab?
All advises are welcome. I hope it will also help other newbie like me.
Regards.
Foreman21
1) Check version of Rancher certified for Kubernetes v1.31
https://www.suse.com/suse-rancher/support-matrix/
In my case it is 2.10.X, so updating to last version is recommended (04-2025).
2) Check OS Compatibility with K3S version
https://www.suse.com/suse-k3s/support-matrix/all-supported-versions
If OS not listed do a distro-upgrate of each node. Check Rancher docs…
3) Do VM backups or snapshot of Rancher node, Master nodes, Worker nodes
See your Hypervisor procedure.
4) Upgrade Helm
# Check current Helm version
helm version
# If Helm is not v3, download and install the latest version
curl https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash
# Verify Helm is updated
helm version
#Should be latest version of 2.10.X
5) Upgrade Rancher
# Add or update the Rancher Helm chart repository
helm repo add rancher-latest https://releases.rancher.com/server-charts/latest
helm repo update
# List available Rancher chart versions
helm search repo rancher-latest/rancher
# Upgrade Rancher to the latest available version
helm upgrade rancher rancher-latest/rancher \
--namespace cattle-system
# Wait for the Rancher deployment to become ready
kubectl -n cattle-system rollout status deploy/rancher
6) Update K3S
Go to Rancher webui.
Go to Cluster Management → edit config of cluster that must be update.
Go to K3S Options → Kubernetes Version then select newer version of K3S.
Click on save. Kubernetes begins upgrading for the cluster.
SOURCES:
Upgrade Rancher: https://ranchermanager.docs.rancher.com/getting-started/installation-and-upgrade/install-upgrade-on-a-kubernetes-cluster/upgrades
Upgrade Kubernetes: https://ranchermanager.docs.rancher.com/getting-started/installation-and-upgrade/upgrade-and-roll-back-kubernetes
Jim’s Garage: https://www.youtube.com/watch?v=h0s2YHPzHb8
ChatGPT