File tree Expand file tree Collapse file tree 3 files changed +4
-6
lines changed
setup/production-environment/tools/kubeadm
administer-cluster/migrating-from-dockershim Expand file tree Collapse file tree 3 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -125,7 +125,7 @@ on Kubernetes dual-stack support see [Dual-stack support with kubeadm](/docs/set
125
125
# 将下面的 "systemd" 替换为你的容器运行时所使用的 cgroup 驱动。
126
126
# kubelet 的默认值为 "cgroupfs"。
127
127
# 如果需要的话,将 "--container-runtime-endpoint " 的值替换为一个不同的容器运行时。
128
- ExecStart=/usr/bin/kubelet --address=127.0.0.1 --pod-manifest-path=/etc/kubernetes/manifests --cgroup-driver=systemd --container-runtime=remote --container-runtime -endpoint=unix:///var/run/containerd/containerd.sock
128
+ ExecStart=/usr/bin/kubelet --address=127.0.0.1 --pod-manifest-path=/etc/kubernetes/manifests --cgroup-driver=systemd --container-runtime-endpoint=unix:///var/run/containerd/containerd.sock
129
129
Restart=always
130
130
EOF
131
131
Original file line number Diff line number Diff line change @@ -157,14 +157,12 @@ then run the following commands:
157
157
<!--
158
158
## Configure the kubelet to use containerd as its container runtime
159
159
160
- Edit the file `/var/lib/kubelet/kubeadm-flags.env` and add the containerd runtime to the flags.
161
- `--container-runtime=remote` and
160
+ Edit the file `/var/lib/kubelet/kubeadm-flags.env` and add the containerd runtime to the flags;
162
161
`--container-runtime-endpoint=unix:///run/containerd/containerd.sock`.
163
162
-->
164
163
## 配置 kubelet 使用 containerd 作为其容器运行时
165
164
166
- 编辑文件 ` /var/lib/kubelet/kubeadm-flags.env ` ,将 containerd 运行时添加到标志中:
167
- ` --container-runtime=remote ` 和
165
+ 编辑文件 ` /var/lib/kubelet/kubeadm-flags.env ` ,将 containerd 运行时添加到标志中;
168
166
` --container-runtime-endpoint=unix:///run/containerd/containerd.sock ` 。
169
167
170
168
<!--
Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ The rest of this section describes these steps in detail.
83
83
84
84
The flow can be seen in the following diagram.
85
85
86
- .
86
+ 
87
87
88
88
The source for the above swimlanes can be found in the source of this document.
89
89
-->
You can’t perform that action at this time.
0 commit comments