@@ -83,7 +83,8 @@ applies to `kubeadm` as well as to Kubernetes overall.
83
83
Check that policy to learn about what versions of Kubernetes and `kubeadm`
84
84
are supported. This page is written for Kubernetes {{< param "version" >}}.
85
85
-->
86
- [ Kubernetes 版本及版本偏差策略] ( /zh-cn/releases/version-skew-policy/#supported-versions ) 适用于 ` kubeadm ` 以及整个 Kubernetes。
86
+ [ Kubernetes 版本及版本偏差策略] ( /zh-cn/releases/version-skew-policy/#supported-versions ) 适用于
87
+ ` kubeadm ` 以及整个 Kubernetes。
87
88
查阅该策略以了解支持哪些版本的 Kubernetes 和 ` kubeadm ` 。
88
89
该页面是为 Kubernetes {{< param "version" >}} 编写的。
89
90
@@ -160,7 +161,7 @@ After you initialize your control-plane, the kubelet runs normally.
160
161
#### Network setup
161
162
162
163
kubeadm similarly to other Kubernetes components tries to find a usable IP on
163
- the network interface associated with the default gateway on a host. Such
164
+ the network interfaces associated with the default gateway on a host. Such
164
165
an IP is then used for the advertising and/or listening performed by a component.
165
166
-->
166
167
#### 网络设置 {#network-setup}
@@ -181,6 +182,14 @@ ip route show # Look for a line starting with "default via"
181
182
ip route show # 查找以 "default via" 开头的行
182
183
```
183
184
185
+ {{< note >}}
186
+ <!--
187
+ If the host does not have a default gateway and if a custom IP address is not passed
188
+ to a Kubernetes component, the component may exit with an error.
189
+ -->
190
+ 如果主机没有默认网关,并且未给 Kubernetes 组件赋予自定义 IP,此组件可能会报错退出。
191
+ {{< /note >}}
192
+
184
193
<!--
185
194
Kubernetes components do not accept custom network interface as an option,
186
195
therefore a custom IP address must be passed as a flag to all components instances
@@ -214,18 +223,18 @@ For dual-stack see
214
223
215
224
有关双协议栈细节参见[ 使用 kubeadm 支持双协议栈] ( /zh-cn/docs/setup/production-environment/tools/kubeadm/dual-stack-support ) 。
216
225
217
- {{< note >}}
218
226
<!--
219
- IP addresses become part of certificates SAN fields. Changing these IP addresses would require
227
+ The IP addresses that you assign to control plane components become part of their X.509 certificates'
228
+ subject alternative name fields. Changing these IP addresses would require
220
229
signing new certificates and restarting the affected components, so that the change in
221
230
certificate files is reflected. See
222
231
[Manual certificate renewal](/docs/tasks/administer-cluster/kubeadm/kubeadm-certs/#manual-certificate-renewal)
223
232
for more details on this topic.
224
233
-->
225
- IP 地址成为证书 SAN 字段的一部分。更改这些 IP 地址将需要签署新的证书并重启受影响的组件,
234
+ 控制平面组件所分配的 IP 地址将成为其 X.509 证书的使用者备用名称字段的一部分。
235
+ 更改这些 IP 地址将需要签署新的证书并重启受影响的组件,
226
236
以便反映证书文件中的变化。有关此主题的更多细节参见
227
237
[ 手动续期证书] ( /zh-cn/docs/tasks/administer-cluster/kubeadm/kubeadm-certs/#manual-certificate-renewal ) 。
228
- {{</ note >}}
229
238
230
239
{{< warning >}}
231
240
<!--
@@ -244,22 +253,6 @@ Kubernetes 维护者建议设置主机网络,使默认网关 IP 成为 Kuberne
244
253
如果节点的默认网关是公共 IP 地址,你应配置数据包过滤或其他保护节点和集群的安全措施。
245
254
{{< /warning >}}
246
255
247
- {{< note >}}
248
- <!--
249
- If the host does not have a default gateway, it is recommended to setup one. Otherwise,
250
- without passing a custom IP address to a Kubernetes component, the component
251
- will exit with an error. If two or more default gateways are present on the host,
252
- a Kubernetes component will try to use the first one it encounters that has a suitable
253
- global unicast IP address. While making this choice, the exact ordering of gateways
254
- might vary between different operating systems and kernel versions.
255
- -->
256
- 如果主机没有默认网关,则建议设置一个默认网关。
257
- 否则,在不传递自定义 IP 地址给 Kubernetes 组件的情况下,此组件将退出并报错。
258
- 如果主机上存在两个或多个默认网关,则 Kubernetes
259
- 组件将尝试使用所遇到的第一个具有合适全局单播 IP 地址的网关。
260
- 在做出此选择时,网关的确切顺序可能因不同的操作系统和内核版本而有所差异。
261
- {{< /note >}}
262
-
263
256
<!--
264
257
### Preparing the required container images
265
258
-->
@@ -278,7 +271,8 @@ Kubeadm allows you to use a custom image repository for the required images.
278
271
See [Using custom images](/docs/reference/setup-tools/kubeadm/kubeadm-init#custom-images)
279
272
for more details.
280
273
-->
281
- 这个步骤是可选的,只适用于你希望 ` kubeadm init ` 和 ` kubeadm join ` 不去下载存放在 ` registry.k8s.io ` 上的默认的容器镜像的情况。
274
+ 这个步骤是可选的,只适用于你希望 ` kubeadm init ` 和 ` kubeadm join ` 不去下载存放在
275
+ ` registry.k8s.io ` 上的默认的容器镜像的情况。
282
276
283
277
当你在离线的节点上创建一个集群的时候,Kubeadm 有一些命令可以帮助你预拉取所需的镜像。
284
278
阅读[ 离线运行 kubeadm] ( /zh-cn/docs/reference/setup-tools/kubeadm/kubeadm-init#without-internet-connection )
@@ -376,8 +370,9 @@ This will allow you to pass `--control-plane-endpoint=cluster-endpoint` to `kube
376
370
high availability scenario.
377
371
-->
378
372
其中 ` 192.168.0.102 ` 是此节点的 IP 地址,` cluster-endpoint ` 是映射到该 IP 的自定义 DNS 名称。
379
- 这将允许你将 ` --control-plane-endpoint=cluster-endpoint ` 传递给 ` kubeadm init ` ,并将相同的 DNS 名称传递给 ` kubeadm join ` 。
380
- 稍后你可以修改 ` cluster-endpoint ` 以指向高可用性方案中的负载均衡器的地址。
373
+ 这将允许你将 ` --control-plane-endpoint=cluster-endpoint ` 传递给 ` kubeadm init ` ,
374
+ 并将相同的 DNS 名称传递给 ` kubeadm join ` 。稍后你可以修改 ` cluster-endpoint `
375
+ 以指向高可用性方案中的负载均衡器的地址。
381
376
382
377
<!--
383
378
Turning a single control plane cluster created without `--control-plane-endpoint` into a highly available cluster
@@ -538,8 +533,8 @@ Read all of this advice carefully before proceeding.
538
533
Cluster DNS (CoreDNS) will not start up before a network is installed.**
539
534
-->
540
535
** 你必须部署一个基于 Pod 网络插件的
541
- {{< glossary_tooltip text="容器网络接口" term_id="cni" >}}
542
- (CNI), 以便你的 Pod 可以相互通信。
536
+ {{< glossary_tooltip text="容器网络接口" term_id="cni" >}}(CNI),
537
+ 以便你的 Pod 可以相互通信。
543
538
在安装网络之前,集群 DNS (CoreDNS) 将不会启动。**
544
539
545
540
<!--
@@ -664,7 +659,7 @@ reasons. If you want to be able to schedule Pods on the control plane nodes,
664
659
for example for a single machine Kubernetes cluster, run:
665
660
-->
666
661
默认情况下,出于安全原因,你的集群不会在控制平面节点上调度 Pod。
667
- 如果你希望能够在控制平面节点上调度 Pod,例如单机 Kubernetes 集群,请运行:
662
+ 如果你希望能够在控制平面节点上调度 Pod,例如单机 Kubernetes 集群,请运行:
668
663
669
664
``` bash
670
665
kubectl taint nodes --all node-role.kubernetes.io/control-plane-
@@ -780,7 +775,8 @@ The output is similar to:
780
775
<!--
781
776
To specify an IPv6 tuple for `<control-plane-host>:<control-plane-port>`, IPv6 address must be enclosed in square brackets, for example: `[2001:db8::101]:2073`.
782
777
-->
783
- 要为 ` <control-plane-host>:<control-plane-port> ` 指定 IPv6 元组,必须将 IPv6 地址括在方括号中,例如:` [2001:db8::101]:2073 `
778
+ 要为 ` <control-plane-host>:<control-plane-port> ` 指定 IPv6 元组,必须将 IPv6
779
+ 地址括在方括号中,例如:` [2001:db8::101]:2073 `
784
780
{{< /note >}}
785
781
786
782
<!--
@@ -1029,10 +1025,10 @@ options.
1029
1025
* 有关漏洞,访问 [ kubeadm GitHub issue tracker] ( https://github.com/kubernetes/kubeadm/issues )
1030
1026
* 有关支持,访问
1031
1027
[ #kubeadm] ( https://kubernetes.slack.com/messages/kubeadm/ ) Slack 频道
1032
- * General SIG 集群生命周期开发 Slack 频道:
1028
+ * General SIG 集群生命周期开发 Slack 频道:
1033
1029
[ #sig-cluster-lifecycle] ( https://kubernetes.slack.com/messages/sig-cluster-lifecycle/ )
1034
1030
* SIG 集群生命周期 [ SIG information] ( https://github.com/kubernetes/community/tree/master/sig-cluster-lifecycle#readme )
1035
- * SIG 集群生命周期邮件列表:
1031
+ * SIG 集群生命周期邮件列表:
1036
1032
[ kubernetes-sig-cluster-lifecycle] ( https://groups.google.com/forum/#!forum/kubernetes-sig-cluster-lifecycle )
1037
1033
1038
1034
<!--
@@ -1143,16 +1139,16 @@ Example for `kubeadm upgrade`:
1143
1139
* The version of kubeadm used for upgrading the node must be at {{< skew currentVersionAddMinor -1 >}}
1144
1140
or {{< skew currentVersion >}}
1145
1141
-->
1146
- ` kubeadm upgrade ` 的例子:
1142
+ ` kubeadm upgrade ` 的例子:
1147
1143
* 用于创建或升级节点的 kubeadm 版本为 {{< skew currentVersionAddMinor -1 >}}。
1148
1144
* 用于升级节点的 kubeadm 版本必须为 {{< skew currentVersionAddMinor -1 >}} 或 {{< skew currentVersion >}}。
1149
1145
1150
1146
<!--
1151
1147
To learn more about the version skew between the different Kubernetes component see
1152
1148
the [Version Skew Policy](/releases/version-skew-policy/).
1153
1149
-->
1154
- 要了解更多关于不同 Kubernetes 组件之间的版本偏差,请参见
1155
- [ 版本偏差策略] ( /zh-cn/releases/version-skew-policy/ ) 。
1150
+ 要了解更多关于不同 Kubernetes 组件之间的版本偏差,
1151
+ 请参见 [ 版本偏差策略] ( /zh-cn/releases/version-skew-policy/ ) 。
1156
1152
1157
1153
<!--
1158
1154
## Limitations {#limitations}
0 commit comments