File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
content/en/docs/setup/production-environment/tools/kubeadm Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -27,9 +27,14 @@ see the [Creating a cluster with kubeadm](/docs/setup/production-environment/too
27
27
* Unique hostname, MAC address, and product_uuid for every node. See [ here] ( #verify-mac-address ) for more details.
28
28
* Certain ports are open on your machines. See [ here] ( #check-required-ports ) for more details.
29
29
* 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
33
38
config files like ` /etc/fstab ` , ` systemd.swap ` , depending how it was configured on your system.
34
39
35
40
{{< note >}}
You can’t perform that action at this time.
0 commit comments