Skip to content

Commit 92385de

Browse files
authored
Merge pull request #31092 from shuaijinchao/zh/sync/translate/install-kubeadm
[zh] synchronize translate install-kubeadm.md
2 parents 55cb130 + bd23cf9 commit 92385de

File tree

1 file changed

+10
-48
lines changed

1 file changed

+10
-48
lines changed

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

Lines changed: 10 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -115,63 +115,25 @@ For more details please see the [Network Plugin Requirements](/docs/concepts/ext
115115

116116
<!--
117117
## Check required ports
118-
119-
### Control-plane node(s)
120-
121-
| Protocol | Direction | Port Range | Purpose | Used By |
122-
|------------|------------|------------|-------------------------|-------------------------|
123-
| TCP | Inbound | 6443* | Kubernetes API server | All |
124-
| TCP | Inbound | 2379-2380 | etcd server client API | kube-apiserver, etcd |
125-
| TCP | Inbound | 10250 | Kubelet API | Self, Control plane |
126-
| TCP | Inbound | 10251 | kube-scheduler | Self |
127-
| TCP | Inbound | 10252 | kube-controller-manager | Self |
118+
These
119+
[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:
128121
-->
122+
129123
## 检查所需端口{#check-required-ports}
130124

131-
### 控制平面节点
125+
启用这些[必要的端口](/zh/docs/reference/ports-and-protocols/)后才能使 Kubernetes 的各组件相互通信。可以使用 telnet 来检查端口是否启用,例如:
132126

133-
| 协议 | 方向 | 端口范围 | 作用 | 使用者 |
134-
|----------|--------|------------|-------------------------|------------------------------|
135-
| TCP | 入站 | 6443 | Kubernetes API 服务器 | 所有组件 |
136-
| TCP | 入站 | 2379-2380 | etcd 服务器客户端 API | kube-apiserver, etcd |
137-
| TCP | 入站 | 10250 | Kubelet API | kubelet 自身、控制平面组件 |
138-
| TCP | 入站 | 10251 | kube-scheduler | kube-scheduler 自身 |
139-
| TCP | 入站 | 10252 | kube-controller-manager | kube-controller-manager 自身 |
127+
```shell
128+
telnet 127.0.0.1 6443
129+
```
140130

141131
<!--
142-
### Worker node(s)
143-
144-
| Protocol | Direction | Port Range | Purpose | Used By |
145-
|------------|------------|-------------|---------------------|-------------------------|
146-
| TCP | Inbound | 10250 | Kubelet API | Self, Control plane |
147-
| TCP | Inbound | 30000-32767 | NodePort Services** | All |
148-
149-
** Default port range for [NodePort Services](/docs/concepts/services-networking/service/).
150-
151-
Any port numbers marked with * are overridable, so you will need to ensure any
152-
custom ports you provide are also open.
153-
154-
Although etcd ports are included in control-plane nodes, you can also host your own
155-
etcd cluster externally or on custom ports.
156-
157132
The pod network plugin you use (see below) may also require certain ports to be
158133
open. Since this differs with each pod network plugin, please see the
159134
documentation for the plugins about what port(s) those need.
160135
-->
161-
### 工作节点
162-
163-
| 协议 | 方向 | 端口范围 | 作用 | 使用者 |
164-
|------|--------|-------------|-------------------|-----------------------------|
165-
| TCP | 入站 | 10250 | Kubelet API | kubelet 自身、控制平面组件 |
166-
| TCP | 入站 | 30000-32767 | NodePort 服务† | 所有组件 |
167-
168-
[NodePort 服务](/zh/docs/concepts/services-networking/service/) 的默认端口范围。
169-
170-
使用 * 标记的任意端口号都可以被覆盖,所以你需要保证所定制的端口是开放的。
171-
172-
虽然控制平面节点已经包含了 etcd 的端口,你也可以使用自定义的外部 etcd 集群,或是指定自定义端口。
173-
174-
你使用的 Pod 网络插件 (见下) 也可能需要某些特定端口开启。由于各个 Pod 网络插件都有所不同,
136+
你使用的 Pod 网络插件 (详见后续章节) 也可能需要开启某些特定端口。由于各个 Pod 网络插件的功能都有所不同,
175137
请参阅他们各自文档中对端口的要求。
176138

177139
<!--
@@ -444,7 +406,7 @@ Install crictl (required for kubeadm / Kubelet Container Runtime Interface (CRI)
444406
安装 crictl(kubeadm/kubelet 容器运行时接口(CRI)所需)
445407

446408
```bash
447-
CRICTL_VERSION="v1.17.0"
409+
CRICTL_VERSION="v1.22.0"
448410
ARCH="amd64"
449411
curl -L "https://github.com/kubernetes-sigs/cri-tools/releases/download/${CRICTL_VERSION}/crictl-${CRICTL_VERSION}-linux-${ARCH}.tar.gz" | sudo tar -C $DOWNLOAD_DIR -xz
450412
```

0 commit comments

Comments
 (0)