You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -40,8 +40,12 @@ see the [Creating a cluster with kubeadm](/docs/setup/production-environment/too
40
40
* Full network connectivity between all machines in the cluster (public or private network is fine).
41
41
* Unique hostname, MAC address, and product_uuid for every node. See [here](#verify-mac-address) for more details.
42
42
* Certain ports are open on your machines. See [here](#check-required-ports) for more details.
43
-
* 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.
43
+
* Swap configuration. The default behavior of a kubelet was to fail to start if swap memory was detected on a node.
44
+
Swap has been supported since v1.22. And since v1.28, Swap is supported for cgroup v2 only; the NodeSwap feature
45
+
gate of the kubelet is beta but disabled by default.
46
+
* You **MUST** disable swap if the kubelet is not properly configured to use swap. For example, `sudo swapoff -a`
47
+
will disable swapping temporarily. To make this change persistent across reboots, make sure swap is disabled in
48
+
config files like `/etc/fstab`, `systemd.swap`, depending how it was configured on your system.
45
49
-->
46
50
* 一台兼容的 Linux 主机。Kubernetes 项目为基于 Debian 和 Red Hat 的 Linux
47
51
发行版以及一些不提供包管理器的发行版提供通用的指令。
@@ -50,12 +54,30 @@ see the [Creating a cluster with kubeadm](/docs/setup/production-environment/too
These instructions are for Kubernetes {{< skew currentVersion >}}.
315
313
-->
316
-
这些说明适用于 Kubernetes {{< skew currentVersion >}}.
314
+
以下指令适用于 Kubernetes {{< skew currentVersion >}}.
317
315
318
316
<!--
319
317
1. Update the `apt` package index and install packages needed to use the Kubernetes `apt` repository:
@@ -327,7 +325,8 @@ These instructions are for Kubernetes {{< skew currentVersion >}}.
327
325
```
328
326
329
327
<!--
330
-
2. Download the public signing key for the Kubernetes package repositories. The same signing key is used for all repositories so you can disregard the version in the URL:
328
+
2. Download the public signing key for the Kubernetes package repositories.
329
+
The same signing key is used for all repositories so you can disregard the version in the URL:
curl -sSL "https://raw.githubusercontent.com/kubernetes/release/${RELEASE_VERSION}/cmd/kubepkg/templates/latest/deb/kubeadm/10-kubeadm.conf" | sed "s:/usr/bin:${DOWNLOAD_DIR}:g" | sudo tee /etc/systemd/system/kubelet.service.d/10-kubeadm.conf
617
501
```
618
502
503
+
{{< note >}}
504
+
<!--
505
+
Please refer to the note in the [Before you begin](#before-you-begin) section for Linux distributions
506
+
that do not include `glibc` by default.
507
+
-->
508
+
对于默认不包括 `glibc` 的 Linux 发行版,请参阅[开始之前](#before-you-begin)一节的注释。
509
+
{{< /note >}}
510
+
619
511
<!--
620
512
Install `kubectl` by following the instructions on [Install Tools page](/docs/tasks/tools/#kubectl).
The Flatcar Container Linux distribution mounts the `/usr` directory as a read-only filesystem.
633
525
Before bootstrapping your cluster, you need to take additional steps to configure a writable directory.
634
-
See the [Kubeadm Troubleshooting guide](/docs/setup/production-environment/tools/kubeadm/troubleshooting-kubeadm/#usr-mounted-read-only/) to learn how to set up a writable directory.
526
+
See the [Kubeadm Troubleshooting guide](/docs/setup/production-environment/tools/kubeadm/troubleshooting-kubeadm/#usr-mounted-read-only/)
527
+
to learn how to set up a writable directory.
635
528
-->
636
529
Flatcar Container Linux 发行版会将 `/usr/` 目录挂载为一个只读文件系统。
@@ -676,7 +569,8 @@ See [Configuring a cgroup driver](/docs/tasks/administer-cluster/kubeadm/configu
676
569
<!--
677
570
## Troubleshooting
678
571
679
-
If you are running into difficulties with kubeadm, please consult our [troubleshooting docs](/docs/setup/production-environment/tools/kubeadm/troubleshooting-kubeadm/).
572
+
If you are running into difficulties with kubeadm, please consult our
0 commit comments