Skip to content

Commit 9644254

Browse files
authored
Merge pull request #40789 from asa3311/sync-install-kubeadm.md
[zh-cn] sync install-kubeadm.md
2 parents b345207 + 8ffca5b commit 9644254

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ see the [Creating a cluster with kubeadm](/docs/setup/production-environment/too
4141
* Unique hostname, MAC address, and product_uuid for every node. See [here](#verify-mac-address) for more details.
4242
* Certain ports are open on your machines. See [here](#check-required-ports) for more details.
4343
* Swap disabled. You **MUST** disable swap in order for the kubelet to work properly.
44+
* 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.
4445
-->
4546
* 一台兼容的 Linux 主机。Kubernetes 项目为基于 Debian 和 Red Hat 的 Linux
4647
发行版以及一些不提供包管理器的发行版提供通用的指令。
@@ -50,6 +51,8 @@ see the [Creating a cluster with kubeadm](/docs/setup/production-environment/too
5051
* 节点之中不可以有重复的主机名、MAC 地址或 product_uuid。请参见[这里](#verify-mac-address)了解更多详细信息。
5152
* 开启机器上的某些端口。请参见[这里](#check-required-ports)了解更多详细信息。
5253
* 禁用交换分区。为了保证 kubelet 正常工作,你**必须**禁用交换分区。
54+
* 例如,`sudo swapoff -a` 将暂时禁用交换分区。要使此更改在重启后保持不变,请确保在如
55+
`/etc/fstab``systemd.swap` 等配置文件中禁用交换分区,具体取决于你的系统如何配置。
5356

5457
<!-- steps -->
5558

0 commit comments

Comments
 (0)