Updating system components
k3s
Manual upgrade
Info: The main nodes must always be updated first.
Installation script
An upgrade can be carried out by re-executing the installation script:
INSTALL_K3S_VERSION=vX.Y.Z-rc1 /home/<user>/install.sh <EXISTING_K3S_ARGS>
For current arguments see: setupMainNode.sh Hint: The upgrade will fail if INSTALL_K3S_SKIP_DOWNLOAD=true is set.
For more information see: Rancher documentation
Binary
It is also possible to upgrade k3s by swapping the binary:
Offline upgrade
- In offline systems, the images used by k3s must be downloaded.
- These can be found on the Release page.
- Storage under
/var/lib/rancher/k3s/agent/images/ - The old tar file must be deleted
- Replacement of the installation script in
/home/<user>/install.sh - Replacement of the k3s binary
/usr/local/bin - Execution of the script:
Automated upgrade
For automated upgrades, the system-upgrade-controller from Rancher could be used.
This controller is highly privileged and offers with its Plan custom resource to upgrade system components (also e.g. APT packages).
The Cloudogu EcoSystem does not currently offer a component for this method.
Info
Restart of k3s main nodes
sudo systemctl restart k3s
Restart k3s agent nodes
sudo systemctl restart k3s-agent
Last updated on 11/14/2023