Skip to content

Commit 3b95b00

Browse files
committed
Update instructions to disable or tolerate swap
Signed-off-by: Itamar Holder <[email protected]>
1 parent 42dd7e5 commit 3b95b00

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

content/en/docs/setup/production-environment/tools/kubeadm/install-kubeadm.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,14 @@ see the [Creating a cluster with kubeadm](/docs/setup/production-environment/too
2727
* Unique hostname, MAC address, and product_uuid for every node. See [here](#verify-mac-address) for more details.
2828
* Certain ports are open on your machines. See [here](#check-required-ports) for more details.
2929
* Swap configuration: The default behavior of a kubelet is to fail to start if swap memory is detected on a node.
30-
See [Swap memory management](/docs/concepts/architecture/nodes/#swap-memory) for more details.
31-
* You **MUST** disable swap if the kubelet is not properly configured to use swap. For example, `sudo swapoff -a`
32-
will disable swapping temporarily. To make this change persistent across reboots, make sure swap is disabled in
30+
This means that swap should either be disabled or tolerated by kubelet.
31+
* To tolerate swap, add `failSwapOn: false` to kubelet configuration or as a command line argument.
32+
Note: even if `failSwapOn: false` is provided, workloads wouldn't have swap access by default.
33+
This can be changed by setting a `swapBehavior`, again in the kubelet configuration file. To use swap,
34+
set a `swapBehavior` other than the default `NoSwap` setting.
35+
See [Swap memory management](/docs/concepts/architecture/nodes/#swap-memory) for more details.
36+
* To disable swap, `sudo swapoff -a` can be used to disable swapping temporarily.
37+
To make this change persistent across reboots, make sure swap is disabled in
3338
config files like `/etc/fstab`, `systemd.swap`, depending how it was configured on your system.
3439

3540
{{< note >}}

0 commit comments

Comments
 (0)