This web page requires JavaScript to be enabled.

JavaScript is an object-oriented computer programming language commonly used to create interactive effects within web browsers.

How to enable JavaScript?

Upgrade k8s and Rancher

Blog February 24, 2024 0

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:


Last modified on March 10th, 2024 at 10:54 pm

Nam Le
lequocnam



0 responds

Leave a Reply

Your email address will not be published. Required fields are marked *

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.