Upgrading K3s - AirGap (Manual Approach)

Steps

  1. Take a shell session to each of the cluster nodes (VMs).
  2. Download and Extract the bundle file: tar -xf gv-platform-$VERSION.tar to all the VMs.
  3. 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
  4. Restart the k3s service across each of the nodes.

    Master nodes:

    $ systemctl restart k3s.service

    Worker nodes:

    $ systemctl restart k3s-agent.service
  5. Wait for a few minutes for the pods to recover.
    watch kubectl get pods -A
  6. Check the k3s version across the nodes
    kubectl get nodes