Skip to content

Commit 3b09c30

Browse files
committed
Move swap into a its own header
Signed-off-by: Itamar Holder <[email protected]>
1 parent 3b95b00 commit 3b09c30

File tree

1 file changed

+15
-10
lines changed

1 file changed

+15
-10
lines changed

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

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,6 @@ see the [Creating a cluster with kubeadm](/docs/setup/production-environment/too
2626
* Full network connectivity between all machines in the cluster (public or private network is fine).
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.
29-
* Swap configuration: The default behavior of a kubelet is to fail to start if swap memory is detected on a node.
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
38-
config files like `/etc/fstab`, `systemd.swap`, depending how it was configured on your system.
3929

4030
{{< note >}}
4131
The `kubeadm` installation is done via binaries that use dynamic linking and assumes that your target system provides `glibc`.
@@ -76,6 +66,21 @@ The pod network plugin you use may also require certain ports to be
7666
open. Since this differs with each pod network plugin, please see the
7767
documentation for the plugins about what port(s) those need.
7868

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+
7984
## Installing a container runtime {#installing-runtime}
8085

8186
To run containers in Pods, Kubernetes uses a

0 commit comments

Comments
 (0)