@@ -26,11 +26,6 @@ see the [Creating a cluster with kubeadm](/docs/setup/production-environment/too
26
26
* Full network connectivity between all machines in the cluster (public or private network is fine).
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
- * Swap configuration. The default behavior of a kubelet was to fail to start if swap memory was 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
33
- config files like ` /etc/fstab ` , ` systemd.swap ` , depending how it was configured on your system.
34
29
35
30
{{< note >}}
36
31
The ` kubeadm ` installation is done via binaries that use dynamic linking and assumes that your target system provides ` glibc ` .
@@ -71,6 +66,21 @@ The pod network plugin you use may also require certain ports to be
71
66
open. Since this differs with each pod network plugin, please see the
72
67
documentation for the plugins about what port(s) those need.
73
68
69
+ ## Swap configuration {#swap-configuration}
70
+
71
+ The default behavior of a kubelet is to fail to start if swap memory is detected on a node.
72
+ This means that swap should either be disabled or tolerated by kubelet.
73
+
74
+ * To tolerate swap, add ` failSwapOn: false ` to kubelet configuration or as a command line argument.
75
+ Note: even if ` failSwapOn: false ` is provided, workloads wouldn't have swap access by default.
76
+ This can be changed by setting a ` swapBehavior ` , again in the kubelet configuration file. To use swap,
77
+ set a ` swapBehavior ` other than the default ` NoSwap ` setting.
78
+ See [ Swap memory management] ( /docs/concepts/architecture/nodes/#swap-memory ) for more details.
79
+ * To disable swap, ` sudo swapoff -a ` can be used to disable swapping temporarily.
80
+ To make this change persistent across reboots, make sure swap is disabled in
81
+ config files like ` /etc/fstab ` , ` systemd.swap ` , depending how it was configured on your system.
82
+
83
+
74
84
## Installing a container runtime {#installing-runtime}
75
85
76
86
To run containers in Pods, Kubernetes uses a
0 commit comments