Skip to content

Commit b751746

Browse files
authored
Merge pull request #42820 from pacoxu/patch-2
update swap related description before installation
2 parents 2931bfa + e48941c commit b751746

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,12 @@ 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 disabled. You **MUST** disable swap in order for the kubelet to work properly.
30-
* For example, `sudo swapoff -a` will disable swapping temporarily. To make this change persistent across reboots, make sure swap is disabled in config files like `/etc/fstab`, `systemd.swap`, depending how it was configured on your system.
29+
* Swap configuration. The default behavior of a kubelet was to fail to start if swap memory was detected on a node.
30+
Swap has been supported since v1.22. And since v1.28, Swap is supported for cgroup v2 only; the NodeSwap feature
31+
gate of the kubelet is beta but disabled by default.
32+
* You **MUST** disable swap if the kubelet is not properly configured to use swap. For example, `sudo swapoff -a`
33+
will disable swapping temporarily. To make this change persistent across reboots, make sure swap is disabled in
34+
config files like `/etc/fstab`, `systemd.swap`, depending how it was configured on your system.
3135

3236
<!-- steps -->
3337

0 commit comments

Comments
 (0)