Skip to content

Commit f94ee9f

Browse files
authored
Merge pull request #33025 from my-git9/install-kubeadm2
[zh] Sync tools/kubeadm/install-kubeadm.md
2 parents 65daf9c + 53522d8 commit f94ee9f

File tree

1 file changed

+24
-16
lines changed

1 file changed

+24
-16
lines changed

content/zh/docs/setup/production-environment/tools/kubeadm/install-kubeadm.md

Lines changed: 24 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ For information on how to create a cluster with kubeadm once you have performed
2727
有关在执行此安装过程后如何使用 kubeadm 创建集群的信息,请参见
2828
[使用 kubeadm 创建集群](/zh/docs/setup/production-environment/tools/kubeadm/create-cluster-kubeadm/) 页面。
2929

30+
{{% dockershim-removal %}}
31+
3032
## {{% heading "prerequisites" %}}
3133

3234
<!--
@@ -117,15 +119,15 @@ For more details please see the [Network Plugin Requirements](/docs/concepts/ext
117119
## Check required ports
118120
These
119121
[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:
121123
-->
122124

123125
## 检查所需端口{#check-required-ports}
124126

125-
启用这些[必要的端口](/zh/docs/reference/ports-and-protocols/)后才能使 Kubernetes 的各组件相互通信。可以使用 telnet 来检查端口是否启用,例如:
127+
启用这些[必要的端口](/zh/docs/reference/ports-and-protocols/)后才能使 Kubernetes 的各组件相互通信。可以使用 netcat 之类的工具来检查端口是否启用,例如:
126128

127129
```shell
128-
telnet 127.0.0.1 6443
130+
nc 127.0.0.1 6443
129131
```
130132

131133
<!--
@@ -156,7 +158,7 @@ to interface with your chosen container runtime.
156158
157159
If you don't specify a runtime, kubeadm automatically tries to detect an installed
158160
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:
160162
161163
| Runtime | Domain Socket |
162164
|------------|---------------------------------|
@@ -170,33 +172,33 @@ The following table lists container runtimes and their associated socket paths:
170172

171173
如果你不指定运行时,则 kubeadm 会自动尝试检测到系统上已经安装的运行时,
172174
方法是扫描一组众所周知的 Unix 域套接字。
173-
下面的表格列举了一些容器运行时及其对应的套接字路径
175+
下面的表格列举了一些 kubeadm 查找的容器运行时及其对应的套接字路径
174176

175177
| 运行时 | 域套接字 |
176178
|------------|----------------------------------|
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` |
180182

181183
<!--
182184
<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
184186
needed because Docker 18.09 ships with containerd and both are detectable even if you only
185187
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.**
187189
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).
189191
190192
See [container runtimes](/docs/setup/production-environment/container-runtimes/)
191193
for more information.
192194
-->
193195
<br/>
194-
如果同时检测到 Docker 和 containerd,则优先选择 Docker。
196+
如果同时检测到 Docker Engine 和 containerd,kubeadm 将优先考虑 Docker Engine
195197
这是必然的,因为 Docker 18.09 附带了 containerd 并且两者都是可以检测到的,
196198
即使你仅安装了 Docker。
197-
如果检测到其他两个或多个运行时,kubeadm 输出错误信息并退出。
199+
**如果检测到其他两个或多个运行时,kubeadm 输出错误信息并退出。**
198200

199-
kubelet 通过内置的 `dockershim` CRI 实现与 Docker 集成
201+
kubelet 可以使用已弃用的 dockershim 适配器与 Docker Engine 集成(dockershim 是 kubelet 本身的一部分)
200202

201203
参阅[容器运行时](/zh/docs/setup/production-environment/container-runtimes/)
202204
以了解更多信息。
@@ -205,13 +207,13 @@ kubelet 通过内置的 `dockershim` CRI 实现与 Docker 集成。
205207
{{% tab name="其它操作系统" %}}
206208
<!--
207209
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).
209211
210212
See [container runtimes](/docs/setup/production-environment/container-runtimes/)
211213
for more information.
212214
-->
213215
默认情况下, kubeadm 使用 {{< glossary_tooltip term_id="docker" >}} 作为容器运行时。
214-
kubelet 通过内置的 `dockershim` CRI 实现与 Docker 集成
216+
kubelet 可以使用已弃用的 dockershim 适配器与 Docker Engine 集成(dockershim 是 kubelet 本身的一部分)
215217
参阅[容器运行时](/zh/docs/setup/production-environment/container-runtimes/)
216218
以了解更多信息。
217219

@@ -355,6 +357,9 @@ sudo systemctl enable --now kubelet
355357
You have to do this until SELinux support is improved in the kubelet.
356358
357359
- 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`.
358363
-->
359364
**请注意:**
360365

@@ -365,6 +370,9 @@ sudo systemctl enable --now kubelet
365370
你必须这么做,直到 kubelet 做出对 SELinux 的支持进行升级为止。
366371

367372
- 如果你知道如何配置 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`
368376

369377
{{% /tab %}}
370378
{{% tab name="无包管理器的情况" %}}

0 commit comments

Comments
 (0)