After using k8s and Rancher in several months, I decided to upgrade the current system to:
- microk8s v1.27.x
- rancher v2.8.1
Upgrade microk8s
Update your system first:
sudo apt update
Next, check the current version of microk8s:
microk8s kubectl get node
The result something likes:
root@vmi1535815:~# microk8s kubectl get node
NAME | STATUS | ROLES | AGE | VERSION |
vmi1535815 | Ready || 87d | v1.26.14 |
Perform the refresh command:
sudo snap refresh microk8s --classic --channel=1.27
Result returned:
microk8s (1.27/stable) v1.27.11 from Canonical✓ refreshed
Now, check the current version of microk8s again, the result something likes:
root@vmi1535815:~# microk8s kubectl get node
NAME | STATUS | ROLES | AGE | VERSION |
vmi1535815 | Ready || 87d | v1.27.11 |
Upgrade Rancher
microk8s helm3 upgrade rancher rancher-stable/rancher \
--namespace cattle-system \
--set hostname=rancher.nready.net \
--set ingress.tls.source=letsEncrypt \
--set [email protected] \
--set letsEncrypt.ingress.class=nginx \
--set replicas=2 \
--version 2.8.1
Waiting for several minutes, the Rancher will be restarted and updated to the newer version.
Ref:
- https://ranchermanager.docs.rancher.com/getting-started/installation-and-upgrade/install-upgrade-on-a-kubernetes-cluster/upgrades
- https://www.suse.com/suse-rancher/support-matrix/all-supported-versions/rancher-v2-8-1/
- https://github.com/rancher/rancher/releases/tag/v2.8.2#installupgrade-notes
- https://github.com/rancher/rancher/issues/41840
Last modified on March 10th, 2024 at 10:54 pm
Nam Le
lequocnam
0 responds