@@ -12,7 +12,7 @@ weight: 10
12
12
<!-- overview -->
13
13
14
14
<!--
15
- This page explains how to configure the kubelet cgroup driver to match the container
15
+ This page explains how to configure the kubelet's cgroup driver to match the container
16
16
runtime cgroup driver for kubeadm clusters.
17
17
-->
18
18
本页阐述如何配置 kubelet 的 cgroup 驱动以匹配 kubeadm 集群中的容器运行时的 cgroup 驱动。
@@ -35,11 +35,15 @@ You should be familiar with the Kubernetes
35
35
<!--
36
36
The [Container runtimes](/docs/setup/production-environment/container-runtimes) page
37
37
explains that the `systemd` driver is recommended for kubeadm based setups instead
38
- of the `cgroupfs` driver, because kubeadm manages the kubelet as a systemd service.
38
+ of the kubelet's [default](/docs/reference/config-api/kubelet-config.v1beta1) `cgroupfs` driver,
39
+ because kubeadm manages the kubelet as a
40
+ [systemd service](/docs/setup/production-environment/tools/kubeadm/kubelet-integration).
39
41
-->
40
- [ 容器运行时] ( /zh-cn/docs/setup/production-environment/container-runtimes ) 页面提到:
41
- 由于 kubeadm 把 kubelet 视为一个系统服务来管理,所以对基于 kubeadm 的安装,
42
- 我们推荐使用 ` systemd ` 驱动,不推荐 ` cgroupfs ` 驱动。
42
+ [ 容器运行时] ( /zh-cn/docs/setup/production-environment/container-runtimes ) 页面提到,
43
+ 由于 kubeadm 把 kubelet 视为一个
44
+ [ 系统服务] ( /zh-cn/docs/setup/production-environment/tools/kubeadm/kubelet-integration ) 来管理,
45
+ 所以对基于 kubeadm 的安装, 我们推荐使用 ` systemd ` 驱动,
46
+ 不推荐 kubelet [ 默认] ( /zh-cn/docs/reference/config-api/kubelet-config.v1beta1 ) 的 ` cgroupfs ` 驱动。
43
47
44
48
<!--
45
49
The page also provides details on how to set up a number of different container runtimes with the
@@ -61,12 +65,12 @@ kubeadm 支持在执行 `kubeadm init` 时,传递一个 `KubeletConfiguration`
61
65
` KubeletConfiguration ` 包含 ` cgroupDriver ` 字段,可用于控制 kubelet 的 cgroup 驱动。
62
66
63
67
<!--
64
- In v1.22, if the user is not setting the `cgroupDriver` field under `KubeletConfiguration`,
65
- ` kubeadm` will default it to `systemd`.
68
+ In v1.22 and later , if the user does not set the `cgroupDriver` field under `KubeletConfiguration`,
69
+ + kubeadm defaults it to `systemd`.
66
70
-->
67
71
68
72
{{< note >}}
69
- 在版本 1.22 中 ,如果用户没有在 ` KubeletConfiguration ` 中设置 ` cgroupDriver ` 字段,
73
+ 在版本 1.22 及更高版本中 ,如果用户没有在 ` KubeletConfiguration ` 中设置 ` cgroupDriver ` 字段,
70
74
` kubeadm ` 会将它设置为默认值 ` systemd ` 。
71
75
{{< /note >}}
72
76
@@ -148,11 +152,11 @@ you must refer to the documentation of the container runtime of your choice.
148
152
## 迁移到 ` systemd ` 驱动
149
153
150
154
<!--
151
- To change the cgroup driver of an existing kubeadm cluster to `systemd` in-place,
155
+ To change the cgroup driver of an existing kubeadm cluster from `cgroupfs` to `systemd` in-place,
152
156
a similar procedure to a kubelet upgrade is required. This must include both
153
157
steps outlined below.
154
158
-->
155
- 要将现有 kubeadm 集群的 cgroup 驱动就地升级为 ` systemd ` ,
159
+ 要将现有 kubeadm 集群的 cgroup 驱动从 ` cgroupfs ` 就地升级为 ` systemd ` ,
156
160
需要执行一个与 kubelet 升级类似的过程。
157
161
该过程必须包含下面两个步骤:
158
162
0 commit comments