Upgrading K3s - AirGap (Manual Approach)
Steps
- Take a shell session to each of the cluster nodes (VMs).
-
Download and Extract the bundle file:
tar -xf gv-platform-$VERSION.tar
to all the VMs. -
Perform the following steps in each of the VMs to Upgrade K3s:
$ mkdir -p /var/lib/rancher/k3s/agent/images/ $ gunzip -c assets/k3s-airgap-images-amd64.tar.gz > /var/lib/rancher/k3s/agent/images/airgap-images.tar $ cp assets/k3s /usr/local/bin && chmod +x /usr/local/bin/k3s
-
Restart the k3s service across each of the nodes.
Master nodes:
$ systemctl restart k3s.service
Worker nodes:
$ systemctl restart k3s-agent.service
-
Wait for a few minutes for the pods to recover.
watch kubectl get pods -A
-
Check the k3s version across the nodes
kubectl get nodes