SUSE Rancher Kubernetes Engine RKE2 Server nodes manually upgrade from version v1.25.10+rke2r1 to version v1.25.11+rke2r1 Using the Installation Script
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
Before upgrade
upgraded first node
upgrading second node
upgraded second node
upgrading third node
upgraded third node
Command console output:
root@dell-wyse-5070-gbz02g3:~$ rke2 –version rke2 version v1.25.10+rke2r1 (e0c376c606754f1ae6a1c2401f4f6e9146bda0f3) go version go1.19.9 X:boringcrypto root@dell-wyse-5070-gbz02g3:~$ curl -sfL https://get.rke2.io | sudo sh – [INFO] finding release for channel stable [INFO] using v1.25.11+rke2r1 as release [INFO] downloading checksums at https://github.com/rancher/rke2/releases/download/v1.25.11+rke2r1/sha256sum-amd64.txt [INFO] downloading tarball at https://github.com/rancher/rke2/releases/download/v1.25.11+rke2r1/rke2.linux-amd64.tar.gz [INFO] verifying tarball [INFO] unpacking tarball file to /usr/local root@dell-wyse-5070-gbz02g3:~$ sudo systemctl restart rke2-server root@dell-wyse-5070-gbz02g3:~$ rke2 –version rke2 version v1.25.11+rke2r1 (32743355da1b2628a4a880ce150f05fe8647aaf9) go version go1.19.10 X:boringcrypto root@dell-wyse-5070-gbz02g3:~$ whereis rke2 rke2: /usr/local/bin/rke2 root@dell-wyse-5070-gbz02g3:~$ ls -la /usr/local/bin/ total 154376 drwxr-xr-x 2 root root 4096 Jun 27 18:39 . drwxr-xr-x 10 root root 4096 Jul 4 02:54 .. -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 45125632 Nov 19 2022 helm -rwxr-xr-x 1 root root 28536832 Dec 12 2022 nerdctl -rwxr-xr-x 1 root root 84362192 Jun 27 18:39 rke2 -rwxr-xr-x 1 root root 2892 Jun 27 18:22 rke2-killall.sh -rwxr-xr-x 1 root root 4088 Jun 27 18:22 rke2-uninstall.sh
root@dell-wyse-5070-gbz02g3:~$ whereis crictl crictl: /var/lib/rancher/rke2/data/v1.25.11-rke2r1-5ec8deb7122b/bin/crictl root@dell-wyse-5070-gbz02g3:~$ ls -la /var/lib/rancher/rke2/data/v1.25.11-rke2r1-5ec8deb7122b/bin/crictl -rwxr-xr-x 1 root root 38483024 Jul 4 02:56 /var/lib/rancher/rke2/data/v1.25.11-rke2r1-5ec8deb7122b/bin/crictl root@dell-wyse-5070-gbz02g3:~$ ls -la /var/lib/rancher/rke2/data/v1.25.11-rke2r1-5ec8deb7122b/bin/ total 320952 drwxr-xr-x 2 root root 4096 Jul 4 02:56 . drwxr-xr-x 4 root root 4096 Jul 4 02:56 .. -rwxr-xr-x 1 root root 59563056 Jul 4 02:56 containerd -rwxr-xr-x 1 root root 8527032 Jul 4 02:56 containerd-shim -rwxr-xr-x 1 root root 10217176 Jul 4 02:56 containerd-shim-runc-v1 -rwxr-xr-x 1 root root 14011856 Jul 4 02:56 containerd-shim-runc-v2 -rwxr-xr-x 1 root root 38483024 Jul 4 02:56 crictl -rwxr-xr-x 1 root root 20968336 Jul 4 02:56 ctr -rwxr-xr-x 1 root root 49232200 Jul 4 02:56 kubectl -rwxr-xr-x 1 root root 116942168 Jul 4 02:56 kubelet -rwxr-xr-x 1 root root 10684792 Jul 4 02:56 runc root@dell-wyse-5070-gbz02g3:~$ 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 226d v1.25.11+rke2r1 192.168.1.51 Ubuntu 22.04.2 LTS 5.15.0-75-generic containerd://1.7.1-k3s1 dell-wyse-5070-gbz12g3.localdomain Ready control-plane,etcd,master 226d v1.25.11+rke2r1 192.168.1.52 Ubuntu 22.04.2 LTS 5.15.0-75-generic containerd://1.7.1-k3s1 dell-wyse-5070-gbz22g3.localdomain Ready control-plane,etcd,master 226d v1.25.11+rke2r1 192.168.1.53 Ubuntu 22.04.2 LTS 5.15.0-75-generic containerd://1.7.1-k3s1 root@dell-wyse-5070-gbz02g3:~$