You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/upgrades/killall.md
+57
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,63 @@ weight: 4
6
6
7
7
To allow high availability during upgrades, the K3s containers continue running when the K3s service is stopped.
8
8
9
+
10
+
## K3s Service
11
+
12
+
Stopping and restarting K3s is supported by the installation script for systemd and OpenRC.
13
+
14
+
<Tabs>
15
+
<TabItemvalue="systemd">
16
+
17
+
To stop servers:
18
+
```sh
19
+
sudo systemctl stop k3s
20
+
```
21
+
22
+
To restart servers:
23
+
```sh
24
+
sudo systemctl start k3s
25
+
```
26
+
27
+
To stop agents:
28
+
```sh
29
+
sudo systemctl stop k3s-agent
30
+
```
31
+
32
+
To restart agents:
33
+
```sh
34
+
sudo systemctl start k3s-agent
35
+
```
36
+
37
+
</TabItem>
38
+
<TabItemvalue="OpenRC">
39
+
40
+
To stop servers:
41
+
```sh
42
+
sudo rc-service k3s stop
43
+
```
44
+
45
+
To restart servers:
46
+
```sh
47
+
sudo rc-service k3s restart
48
+
```
49
+
50
+
To stop agents:
51
+
```sh
52
+
sudo rc-service k3s-agent stop
53
+
```
54
+
55
+
To restart agents:
56
+
```sh
57
+
sudo rc-service k3s-agent restart
58
+
```
59
+
60
+
</TabItem>
61
+
</Tabs>
62
+
63
+
64
+
## Killall Script
65
+
9
66
To stop all of the K3s containers and reset the containerd state, the `k3s-killall.sh` script can be used.
10
67
11
68
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.
Copy file name to clipboardExpand all lines: docs/upgrades/manual.md
+14-32
Original file line number
Diff line number
Diff line change
@@ -37,6 +37,12 @@ The contents of the [configuration file](../installation/configuration.md#config
37
37
If you want your configuration to be independent from the install script, you should use a configuration file instead of passing environment variables or arguments to the install script.
38
38
:::
39
39
40
+
Running the install script will:
41
+
42
+
1. Download the new k3s binary
43
+
2. Update the systemd unit or openrc init script to reflect the args passed to the install script
44
+
3. Restart the k3s service
45
+
40
46
For example, to upgrade to the current stable release:
0 commit comments