Illumina Innovates with Rancher and Kubernetes
You can upgrade K3s by using the installation script, or by manually installing the binary of the desired version.
Note: When upgrading, upgrade server nodes first one at a time, then any worker nodes.
To upgrade K3s from an older version you can re-run the installation script using the same flags, for example:
curl -sfL https://get.k3s.io | sh -
If you want to upgrade to specific version you can run the following command:
curl -sfL https://get.k3s.io | INSTALL_K3S_VERSION=vX.Y.Z-rc1 sh -
Or to manually upgrade K3s:
/usr/local/bin/k3s
Restarting K3s is supported by the installation script for systemd and openrc. To restart manually for systemd use:
sudo systemctl restart k3s
To restart manually for openrc use:
sudo service k3s restart