Stopping K3s
To allow high availability during upgrades, the K3s containers continue running when the K3s service is stopped.
K3s Service
Stopping and restarting K3s is supported by the installation script for systemd and OpenRC.
- 
systemd 
- 
OpenRC 
To stop servers:
sudo systemctl stop k3sTo restart servers:
sudo systemctl start k3sTo stop agents:
sudo systemctl stop k3s-agentTo restart agents:
sudo systemctl start k3s-agentTo stop servers:
sudo rc-service k3s stopTo restart servers:
sudo rc-service k3s restartTo stop agents:
sudo rc-service k3s-agent stopTo restart agents:
sudo rc-service k3s-agent restartKillall Script
To stop all of the K3s containers and reset the containerd state, the k3s-killall.sh script can be used.
The killall script cleans up containers, K3s directories, and networking components while also removing the iptables chain with all the associated rules. The cluster data will not be deleted.
To run the killall script from a server node, run:
/usr/local/bin/k3s-killall.sh