@@ -12,15 +12,15 @@ content_type: task
12
12
13
13
<!--
14
14
This task outlines the steps needed to update your container runtime to containerd from Docker. It
15
- is applicable for cluster operators running Kubernetes 1.23 or earlier. Also this covers an
16
- example scenario for migrating from dockershim to containerd and alternative container runtimes
15
+ is applicable for cluster operators running Kubernetes 1.23 or earlier. This also covers an
16
+ example scenario for migrating from dockershim to containerd. Alternative container runtimes
17
17
can be picked from this [page](/docs/setup/production-environment/container-runtimes/).
18
18
-->
19
19
本任务给出将容器运行时从 Docker 改为 containerd 所需的步骤。
20
20
此任务适用于运行 1.23 或更早版本 Kubernetes 的集群操作人员。
21
- 同时,此任务也涉及从 dockershim 迁移到 containerd 的示例场景,
22
- 以及可以从 [ 此页面 ] ( /zh-cn/docs/setup/production-environment/container-runtimes/ )
23
- 获得的其他容器运行时列表 。
21
+ 同时,此任务也涉及从 dockershim 迁移到 containerd 的示例场景。
22
+ 有关其他备选的容器运行时,可查阅
23
+ [ 此页面 ] ( /zh-cn/docs/setup/production-environment/container-runtimes/ ) 进行拣选 。
24
24
25
25
## {{% heading "prerequisites" %}}
26
26
@@ -48,7 +48,7 @@ kubectl drain <node-to-drain> --ignore-daemonsets
48
48
<!--
49
49
Replace `<node-to-drain>` with the name of your node you are draining.
50
50
-->
51
- 将 ` <node-to-drain> ` 替换为你所要腾空的节点的名称
51
+ 将 ` <node-to-drain> ` 替换为你所要腾空的节点的名称。
52
52
53
53
<!--
54
54
## Stop the Docker daemon
@@ -159,13 +159,13 @@ then run the following commands:
159
159
160
160
Edit the file `/var/lib/kubelet/kubeadm-flags.env` and add the containerd runtime to the flags.
161
161
`--container-runtime=remote` and
162
- `--container-runtime-endpoint=unix:///run/containerd/containerd.sock" `.
162
+ `--container-runtime-endpoint=unix:///run/containerd/containerd.sock`.
163
163
-->
164
164
## 配置 kubelet 使用 containerd 作为其容器运行时
165
165
166
166
编辑文件 ` /var/lib/kubelet/kubeadm-flags.env ` ,将 containerd 运行时添加到标志中:
167
167
` --container-runtime=remote ` 和
168
- ` --container-runtime-endpoint=unix:///run/containerd/containerd.sock" ` 。
168
+ ` --container-runtime-endpoint=unix:///run/containerd/containerd.sock ` 。
169
169
170
170
<!--
171
171
Users using kubeadm should be aware that the `kubeadm` tool stores the CRI socket for each host as
@@ -233,7 +233,7 @@ Finally if everything goes well, remove Docker.
233
233
-->
234
234
最后,在一切顺利时删除 Docker。
235
235
236
- {{< tabs name="tab-remove-docker-enigine " >}}
236
+ {{< tabs name="tab-remove-docker-engine " >}}
237
237
{{% tab name="CentOS" %}}
238
238
239
239
``` shell
0 commit comments