Skip to content

Commit e5d630c

Browse files
committed
[zh] synchronize translate install-kubeadm.md
1 parent 930081f commit e5d630c

File tree

1 file changed

+10
-53
lines changed

1 file changed

+10
-53
lines changed

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

Lines changed: 10 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -115,63 +115,20 @@ 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 |
128-
-->
129-
## 检查所需端口{#check-required-ports}
130-
131-
### 控制平面节点
132-
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 自身 |
140-
141-
<!--
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-
157-
The pod network plugin you use (see below) may also require certain ports to be
158-
open. Since this differs with each pod network plugin, please see the
159-
documentation for the plugins about what port(s) those need.
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:
160121
-->
161-
### 工作节点
162-
163-
| 协议 | 方向 | 端口范围 | 作用 | 使用者 |
164-
|------|--------|-------------|-------------------|-----------------------------|
165-
| TCP | 入站 | 10250 | Kubelet API | kubelet 自身、控制平面组件 |
166-
| TCP | 入站 | 30000-32767 | NodePort 服务† | 所有组件 |
167122

168-
[NodePort 服务](/zh/docs/concepts/services-networking/service/) 的默认端口范围。
123+
## 检查所需端口{#check-required-ports}
169124

170-
使用 * 标记的任意端口号都可以被覆盖,所以你需要保证所定制的端口是开放的。
125+
启用这些[必要的端口](/zh/docs/reference/ports-and-protocols/)后才能使 Kubernetes 的各组件相互通信。可以使用 telnet 来检查端口是否启用,例如:
171126

172-
虽然控制平面节点已经包含了 etcd 的端口,你也可以使用自定义的外部 etcd 集群,或是指定自定义端口。
127+
```shell
128+
telnet 127.0.0.1 6443
129+
```
173130

174-
你使用的 Pod 网络插件 (见下) 也可能需要某些特定端口开启。由于各个 Pod 网络插件都有所不同
131+
你使用的 Pod 网络插件 (详见后续章节) 也可能需要开启某些特定端口。由于各个 Pod 网络插件的功能都有所不同
175132
请参阅他们各自文档中对端口的要求。
176133

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

446403
```bash
447-
CRICTL_VERSION="v1.17.0"
404+
CRICTL_VERSION="v1.22.0"
448405
ARCH="amd64"
449406
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
450407
```

0 commit comments

Comments
 (0)