update kubeadm prerequisites

This commit is contained in:
carlory 2024-05-28 15:43:52 +08:00
parent 7ed186cfba
commit b64b45c15e
2 changed files with 5 additions and 2 deletions

View File

@ -13,6 +13,10 @@ stages:
- stage: beta - stage: beta
defaultValue: false defaultValue: false
fromVersion: "1.28" fromVersion: "1.28"
toVersion: "1.29"
- stage: beta
defaultValue: true
fromVersion: "1.30"
--- ---
Enable the kubelet to allocate swap memory for Kubernetes workloads on a node. Enable the kubelet to allocate swap memory for Kubernetes workloads on a node.
Must be used with `KubeletConfiguration.failSwapOn` set to false. Must be used with `KubeletConfiguration.failSwapOn` set to false.

View File

@ -27,8 +27,7 @@ see the [Creating a cluster with kubeadm](/docs/setup/production-environment/too
* Unique hostname, MAC address, and product_uuid for every node. See [here](#verify-mac-address) for more details. * Unique hostname, MAC address, and product_uuid for every node. See [here](#verify-mac-address) for more details.
* Certain ports are open on your machines. See [here](#check-required-ports) for more details. * Certain ports are open on your machines. See [here](#check-required-ports) for more details.
* Swap configuration. The default behavior of a kubelet was to fail to start if swap memory was detected on a node. * Swap configuration. The default behavior of a kubelet was to fail to start if swap memory was detected on a node.
Swap has been supported since v1.22. And since v1.28, Swap is supported for cgroup v2 only; the NodeSwap feature See [Swap memory management](/docs/concepts/architecture/nodes/#swap-memory) for more details.
gate of the kubelet is beta but disabled by default.
* You **MUST** disable swap if the kubelet is not properly configured to use swap. For example, `sudo swapoff -a` * You **MUST** disable swap if the kubelet is not properly configured to use swap. For example, `sudo swapoff -a`
will disable swapping temporarily. To make this change persistent across reboots, make sure swap is disabled in 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. config files like `/etc/fstab`, `systemd.swap`, depending how it was configured on your system.