SUSE Rancher Kubernetes Engine RKE2 Server nodes manually upgrade from version v1.24.8+rke2r1 to version v1.25.10+rke2r1 Using the Installation Script

SUSE Rancher Kubernetes Engine RKE2 Server nodes manually upgrade from version v1.24.8+rke2r1 to version v1.25.10+rke2r1 Using the Installation Script1

Official document link:

https://docs.rke2.io/upgrade/manual_upgrade

command:

rke2 --version
curl -sfL https://get.rke2.io | sudo sh -
sudo systemctl restart rke2-server
rke2 --version

Command console output:

root@dell-wyse-5070-gbz22g3:~$ rke2 –version
rke2 version v1.24.8+rke2r1 (b061438ce1f04518d980aac842b62f92095d793d)
go version go1.18.1b7


root@dell-wyse-5070-gbz22g3:~$ curl -sfL https://get.rke2.io | sudo sh –
[INFO] finding release for channel stable
[INFO] using v1.25.10+rke2r1 as release
[INFO] downloading checksums at https://github.com/rancher/rke2/releases/download/v1.25.10+rke2r1/sha256sum-amd64.txt
[INFO] downloading tarball at https://github.com/rancher/rke2/releases/download/v1.25.10+rke2r1/rke2.linux-amd64.tar.gz
[INFO] verifying tarball
[INFO] unpacking tarball file to /usr/local

root@dell-wyse-5070-gbz22g3:~$ sudo systemctl restart rke2-server


root@dell-wyse-5070-gbz22g3:~$ rke2 –version
rke2 version v1.25.10+rke2r1 (e0c376c606754f1ae6a1c2401f4f6e9146bda0f3)
go version go1.19.9 X:boringcrypto
root@dell-wyse-5070-gbz22g3:~$

root@dell-wyse-5070-gbz22g3:~$ whereis rke2
rke2: /usr/local/bin/rke2

root@dell-wyse-5070-gbz22g3:~$ ls -la /usr/local/bin/
total 110276
drwxr-xr-x 2 root root 4096 May 30 23:40 .
drwxr-xr-x 10 root root 4096 Jun 25 00:41 ..
-rwxr-xr-x 1 root root 21563 Dec 12 2022 containerd-rootless-setuptool.sh
-rwxr-xr-x 1 root root 7032 Dec 12 2022 containerd-rootless.sh
-rwxr-xr-x 1 root root 28536832 Dec 12 2022 nerdctl
-rwxr-xr-x 1 root root 84333176 May 30 23:40 rke2
-rwxr-xr-x 1 root root 2892 May 30 23:25 rke2-killall.sh
-rwxr-xr-x 1 root root 4088 May 30 23:25 rke2-uninstall.sh

root@dell-wyse-5070-gbz22g3:~$ kubectl get no -o wide
NAME STATUS ROLES AGE VERSION INTERNAL-IP EXTERNAL-IP OS-IMAGE KERNEL-VERSION CONTAINER-RUNTIME
dell-wyse-5070-gbz02g3.localdomain Ready control-plane,etcd,master 217d v1.25.10+rke2r1 192.168.1.51 Ubuntu 22.04.2 LTS 5.15.0-71-generic containerd://1.7.1-k3s1
dell-wyse-5070-gbz12g3.localdomain Ready control-plane,etcd,master 217d v1.25.10+rke2r1 192.168.1.52 Ubuntu 22.04.2 LTS 5.15.0-71-generic containerd://1.7.1-k3s1
dell-wyse-5070-gbz22g3.localdomain Ready control-plane,etcd,master 217d v1.25.10+rke2r1 192.168.1.53 Ubuntu 22.04.2 LTS 5.15.0-71-generic containerd://1.7.1-k3s1