@@ -27,6 +27,8 @@ For information on how to create a cluster with kubeadm once you have performed
27
27
有关在执行此安装过程后如何使用 kubeadm 创建集群的信息,请参见
28
28
[ 使用 kubeadm 创建集群] ( /zh/docs/setup/production-environment/tools/kubeadm/create-cluster-kubeadm/ ) 页面。
29
29
30
+ {{% dockershim-removal %}}
31
+
30
32
## {{% heading "prerequisites" %}}
31
33
32
34
<!--
@@ -117,15 +119,15 @@ For more details please see the [Network Plugin Requirements](/docs/concepts/ext
117
119
## Check required ports
118
120
These
119
121
[required ports](/docs/reference/ports-and-protocols/)
120
- need to be open in order for Kubernetes components to communicate with each other. You can use telnet to check if a port is open. For example:
122
+ need to be open in order for Kubernetes components to communicate with each other. You can use tools like netcat to check if a port is open. For example:
121
123
-->
122
124
123
125
## 检查所需端口{#check-required-ports}
124
126
125
- 启用这些[ 必要的端口] ( /zh/docs/reference/ports-and-protocols/ ) 后才能使 Kubernetes 的各组件相互通信。可以使用 telnet 来检查端口是否启用 ,例如:
127
+ 启用这些[ 必要的端口] ( /zh/docs/reference/ports-and-protocols/ ) 后才能使 Kubernetes 的各组件相互通信。可以使用 netcat 之类的工具来检查端口是否启用 ,例如:
126
128
127
129
``` shell
128
- telnet 127.0.0.1 6443
130
+ nc 127.0.0.1 6443
129
131
```
130
132
131
133
<!--
@@ -156,7 +158,7 @@ to interface with your chosen container runtime.
156
158
157
159
If you don't specify a runtime, kubeadm automatically tries to detect an installed
158
160
container runtime by scanning through a list of well known Unix domain sockets.
159
- The following table lists container runtimes and their associated socket paths:
161
+ The following table lists container runtimes that kubeadm looks for, and their associated socket paths:
160
162
161
163
| Runtime | Domain Socket |
162
164
|------------|---------------------------------|
@@ -170,33 +172,33 @@ The following table lists container runtimes and their associated socket paths:
170
172
171
173
如果你不指定运行时,则 kubeadm 会自动尝试检测到系统上已经安装的运行时,
172
174
方法是扫描一组众所周知的 Unix 域套接字。
173
- 下面的表格列举了一些容器运行时及其对应的套接字路径 :
175
+ 下面的表格列举了一些 kubeadm 查找的容器运行时及其对应的套接字路径 :
174
176
175
177
| 运行时 | 域套接字 |
176
178
| ------------| ----------------------------------|
177
- | Docker | /var/run/dockershim.sock |
178
- | containerd | /run/containerd/containerd.sock |
179
- | CRI-O | /var/run/crio/crio.sock |
179
+ | Docker Engine | ` /var/run/dockershim.sock ` |
180
+ | containerd | ` /run/containerd/containerd.sock ` |
181
+ | CRI-O | ` /var/run/crio/crio.sock ` |
180
182
181
183
<!--
182
184
<br />
183
- If both Docker and containerd are detected, Docker takes precedence. This is
185
+ If both Docker Engine and containerd are detected, kubeadm will give precedence to Docker Engine . This is
184
186
needed because Docker 18.09 ships with containerd and both are detectable even if you only
185
187
installed Docker.
186
- If any other two or more runtimes are detected, kubeadm exits with an error.
188
+ ** If any other two or more runtimes are detected, kubeadm exits with an error.**
187
189
188
- The kubelet integrates with Docker through the built-in `dockershim` CRI implementation .
190
+ The kubelet can integrate with Docker Engine using the deprecated `dockershim` adapter (the dockershim is part of the kubelet itself) .
189
191
190
192
See [container runtimes](/docs/setup/production-environment/container-runtimes/)
191
193
for more information.
192
194
-->
193
195
<br />
194
- 如果同时检测到 Docker 和 containerd,则优先选择 Docker。
196
+ 如果同时检测到 Docker Engine 和 containerd,kubeadm 将优先考虑 Docker Engine 。
195
197
这是必然的,因为 Docker 18.09 附带了 containerd 并且两者都是可以检测到的,
196
198
即使你仅安装了 Docker。
197
- 如果检测到其他两个或多个运行时,kubeadm 输出错误信息并退出。
199
+ ** 如果检测到其他两个或多个运行时,kubeadm 输出错误信息并退出。**
198
200
199
- kubelet 通过内置的 ` dockershim ` CRI 实现与 Docker 集成 。
201
+ kubelet 可以使用已弃用的 dockershim 适配器与 Docker Engine 集成(dockershim 是 kubelet 本身的一部分) 。
200
202
201
203
参阅[ 容器运行时] ( /zh/docs/setup/production-environment/container-runtimes/ )
202
204
以了解更多信息。
@@ -205,13 +207,13 @@ kubelet 通过内置的 `dockershim` CRI 实现与 Docker 集成。
205
207
{{% tab name="其它操作系统" %}}
206
208
<!--
207
209
By default, kubeadm uses {{< glossary_tooltip term_id="docker" >}} as the container runtime.
208
- The kubelet integrates with Docker through the built-in `dockershim` CRI implementation .
210
+ The kubelet can integrate with Docker Engine using the deprecated `dockershim` adapter (the dockershim is part of the kubelet itself) .
209
211
210
212
See [container runtimes](/docs/setup/production-environment/container-runtimes/)
211
213
for more information.
212
214
-->
213
215
默认情况下, kubeadm 使用 {{< glossary_tooltip term_id="docker" >}} 作为容器运行时。
214
- kubelet 通过内置的 ` dockershim ` CRI 实现与 Docker 集成 。
216
+ kubelet 可以使用已弃用的 dockershim 适配器与 Docker Engine 集成(dockershim 是 kubelet 本身的一部分) 。
215
217
参阅[ 容器运行时] ( /zh/docs/setup/production-environment/container-runtimes/ )
216
218
以了解更多信息。
217
219
@@ -355,6 +357,9 @@ sudo systemctl enable --now kubelet
355
357
You have to do this until SELinux support is improved in the kubelet.
356
358
357
359
- You can leave SELinux enabled if you know how to configure it but it may require settings that are not supported by kubeadm.
360
+ - If the `baseurl` fails because your Red Hat-based distribution cannot interpret `basearch`, replace `\$basearch` with your computer's architecture.
361
+ Type `uname -m` to see that value.
362
+ For example, the `baseurl` URL for `x86_64` could be: `https://packages.cloud.google.com/yum/repos/kubernetes-el7-x86_64`.
358
363
-->
359
364
** 请注意:**
360
365
@@ -365,6 +370,9 @@ sudo systemctl enable --now kubelet
365
370
你必须这么做,直到 kubelet 做出对 SELinux 的支持进行升级为止。
366
371
367
372
- 如果你知道如何配置 SELinux 则可以将其保持启用状态,但可能需要设定 kubeadm 不支持的部分配置
373
+ - 如果由于该 Red Hat 的发行版无法解析 ` basearch ` 导致获取 ` baseurl ` 失败,请将 ` \$basearch ` 替换为你计算机的架构。
374
+ 输入 ` uname -m ` 以查看该值。
375
+ 例如,` x86_64 ` 的 ` baseurl ` URL 可以是:` https://packages.cloud.google.com/yum/repos/kubernetes-el7-x86_64 ` 。
368
376
369
377
{{% /tab %}}
370
378
{{% tab name="无包管理器的情况" %}}
0 commit comments