Skip to content

Commit 069aeec

Browse files
authored
Merge pull request #23721 from tengqm/zh-links-setup-1
[zh] Fix links in setup section (1)
2 parents 9dac284 + 3fda142 commit 069aeec

File tree

7 files changed

+175
-119
lines changed

7 files changed

+175
-119
lines changed

content/zh/docs/reference/setup-tools/kubeadm/kubeadm-init.md

Lines changed: 146 additions & 82 deletions
Large diffs are not rendered by default.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -761,7 +761,7 @@ first [drain the node](/docs/reference/generated/kubectl/kubectl-commands#drain)
761761
and make sure that the node is empty, then deconfigure the node.
762762
-->
763763
但是,如果要更干净地取消配置群集,
764-
则应首先[清空节点](/zh/docs/reference/generated/kubectl/kubectl-commands#drain)并确保该节点为空,
764+
则应首先[清空节点](/docs/reference/generated/kubectl/kubectl-commands#drain)并确保该节点为空,
765765
然后取消配置该节点。
766766

767767

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,6 @@ A minimum of three hosts for control plane nodes and three hosts for etcd nodes
146146
<!--
147147
- [Set up a highly available cluster with kubeadm](/docs/setup/production-environment/tools/kubeadm/high-availability/)
148148
-->
149-
- [使用 kubeadm 设置高可用集群](/docs/setup/production-environment/tools/kubeadm/high-availability/)
149+
- [使用 kubeadm 设置高可用集群](/zh/docs/setup/production-environment/tools/kubeadm/high-availability/)
150150

151151

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

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,12 @@ in the kubeadm [issue tracker](https://github.com/kubernetes/kubeadm/issues/new)
4242
4343
See also [The upgrade documentation](/docs/tasks/administer-cluster/kubeadm/kubeadm-upgrade-1-15).
4444
-->
45-
在下一步之前,您应该仔细考虑哪种方法更好的满足您的应用程序和环境的需求。 [这是对比文档](/docs/setup/production-environment/tools/kubeadm/ha-topology/) 讲述了每种方法的优缺点。
45+
在下一步之前,您应该仔细考虑哪种方法更好的满足您的应用程序和环境的需求。
46+
[这是对比文档](/zh/docs/setup/production-environment/tools/kubeadm/ha-topology/) 讲述了每种方法的优缺点。
4647

4748
如果您在安装 HA 集群时遇到问题,请在 kubeadm [问题跟踪](https://github.com/kubernetes/kubeadm/issues/new)里向我们提供反馈。
4849

49-
您也可以阅读 [升级文件](/docs/tasks/administer-cluster/kubeadm/kubeadm-upgrade-1-15)
50-
50+
您也可以阅读 [升级文件](/zh/docs/tasks/administer-cluster/kubeadm/kubeadm-upgrade/)
5151
<!--
5252
This page does not address running your cluster on a cloud provider. In a cloud
5353
environment, neither approach documented here works with Service objects of type
@@ -133,7 +133,6 @@ option. Your cluster requirements may need a different configuration.
133133
- Read the [Options for Software Load Balancing](https://github.com/kubernetes/kubeadm/blob/master/docs/ha-considerations.md#options-for-software-load-balancing)
134134
guide for more details.
135135
-->
136-
137136
1. 创建一个名为 kube-apiserver 的负载均衡器解析 DNS。
138137

139138
- 在云环境中,应该将控制平面节点放置在 TCP 后面转发负载平衡。 该负载均衡器将流量分配给目标列表中所有运行状况良好的控制平面节点。健康检查 apiserver 是在 kube-apiserver 监听端口(默认值 `:6443`)上的一个 TCP 检查。
@@ -161,17 +160,16 @@ option. Your cluster requirements may need a different configuration.
161160
162161
1. Add the remaining control plane nodes to the load balancer target group.
163162
-->
163+
2. 添加第一个控制平面节点到负载均衡器并测试连接:
164164

165-
1. 添加第一个控制平面节点到负载均衡器并测试连接:
166-
167-
```sh
165+
```shell
168166
nc -v LOAD_BALANCER_IP PORT
169167
```
170168

171169
- 由于 apiserver 尚未运行,预期会出现一个连接拒绝错误。然而超时意味着负载均衡器不能和控制平面节点通信。
172170
如果发生超时,请重新配置负载均衡器与控制平面节点进行通信。
173171

174-
1. 将其余控制平面节点添加到负载均衡器目标组。
172+
3. 将其余控制平面节点添加到负载均衡器目标组。
175173

176174
<!-- ## Stacked control plane and etcd nodes -->
177175
## 使用堆控制平面和 etcd 节点
@@ -180,7 +178,6 @@ option. Your cluster requirements may need a different configuration.
180178
### 控制平面节点的第一步
181179

182180
<!--
183-
184181
1. Initialize the control plane:
185182

186183
```sh
@@ -203,7 +200,6 @@ option. Your cluster requirements may need a different configuration.
203200
sudo kubeadm init --control-plane-endpoint "LOAD_BALANCER_DNS:LOAD_BALANCER_PORT" --upload-certs
204201
```
205202

206-
207203
- 您可以使用 `--kubernetes-version` 标志来设置要使用的 Kubernetes 版本。建议将 kubeadm、kebelet、kubectl 和 Kubernetes 的版本匹配。
208204
- 这个 `--control-plane-endpoint` 标志应该被设置成负载均衡器的地址或 DNS 和端口。
209205
- 这个 `--upload-certs` 标志用来将在所有控制平面实例之间的共享证书上传到集群。如果正好相反,你更喜欢手动地通过控制平面节点或者使用自动化
@@ -224,7 +220,8 @@ To add a pod CIDR pass the flag `--pod-network-cidr`, or if you are using a kube
224220
set the `podSubnet` field under the `networking` object of `ClusterConfiguration`.
225221
-->
226222
{{< note >}}
227-
一些 CNI 网络插件如 Calico 需要 CIDR 例如 `192.168.0.0/16` 和一些像 Weave 没有。参考 [CNI 网络文档](/docs/setup/production-environment/tools/kubeadm/create-cluster-kubeadm/#pod-network)。
223+
一些 CNI 网络插件如 Calico 需要 CIDR 例如 `192.168.0.0/16` 和一些像 Weave 没有。参考
224+
[CNI 网络文档](/zh/docs/setup/production-environment/tools/kubeadm/create-cluster-kubeadm/#pod-network)。
228225
通过传递 `--pod-network-cidr` 标志添加 pod CIDR,或者您可以使用 kubeadm 配置文件,在 `ClusterConfiguration``networking` 对象下设置 `podSubnet` 字段。
229226
{{< /note >}}
230227

@@ -323,7 +320,8 @@ As stated in the command output, the certificate key gives access to cluster sen
323320

324321
-->
325322
1. 应用您选择的 CNI 插件:
326-
[请遵循以下指示](/docs/setup/production-environment/tools/kubeadm/create-cluster-kubeadm/#pod-network) 安装 CNI 提供程序。如果适用,请确保配置与 kubeadm 配置文件中指定的 Pod CIDR 相对应。
323+
[请遵循以下指示](/zh/docs/setup/production-environment/tools/kubeadm/create-cluster-kubeadm/#pod-network)
324+
安装 CNI 提供程序。如果适用,请确保配置与 kubeadm 配置文件中指定的 Pod CIDR 相对应。
327325

328326
在此示例中,我们使用 Weave Net:
329327

@@ -414,7 +412,7 @@ in the kubeadm config file.
414412

415413
### 设置 ectd 集群
416414

417-
1. 按照 [这些指示](/docs/setup/production-environment/tools/kubeadm/setup-ha-etcd-with-kubeadm/) 去设置 etcd 集群。
415+
1. 按照 [这些指示](/zh/docs/setup/production-environment/tools/kubeadm/setup-ha-etcd-with-kubeadm/) 去设置 etcd 集群。
418416

419417
1. 设置 SSH 在 [这](#manual-certs)描述。
420418

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

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,13 @@ card:
88
title: 安装 kubeadm 设置工具
99
---
1010
<!--
11-
---
1211
title: Installing kubeadm
1312
content_type: task
1413
weight: 10
1514
card:
1615
name: setup
1716
weight: 20
1817
title: Install the kubeadm setup tool
19-
---
2018
-->
2119

2220
<!-- overview -->
@@ -26,13 +24,11 @@ card:
2624
For information how to create a cluster with kubeadm once you have performed this installation process, see the [Using kubeadm to Create a Cluster](/docs/setup/production-environment/tools/kubeadm/create-cluster-kubeadm/) page.
2725
-->
2826
<img src="https://raw.githubusercontent.com/kubernetes/kubeadm/master/logos/stacked/color/kubeadm-stacked-color.png" align="right" width="150px">本页面显示如何安装 `kubeadm` 工具箱。
29-
有关在执行此安装过程后如何使用 kubeadm 创建集群的信息,请参见[使用 kubeadm 创建集群](/docs/setup/production-environment/tools/kubeadm/create-cluster-kubeadm/) 页面。
30-
31-
27+
有关在执行此安装过程后如何使用 kubeadm 创建集群的信息,请参见
28+
[使用 kubeadm 创建集群](/zh/docs/setup/production-environment/tools/kubeadm/create-cluster-kubeadm/) 页面。
3229

3330
## {{% heading "prerequisites" %}}
3431

35-
3632
<!--
3733
* One or more machines running one of:
3834
- Ubuntu 16.04+
@@ -65,7 +61,6 @@ For information how to create a cluster with kubeadm once you have performed thi
6561
* 禁用交换分区。为了保证 kubelet 正常工作,您 **必须** 禁用交换分区。
6662

6763

68-
6964
<!-- steps -->
7065

7166
<!--
@@ -187,7 +182,7 @@ documentation for the plugins about what port(s) those need.
187182
| TCP | 入站 | 10250 | Kubelet API | kubelet 自身、控制平面组件 |
188183
| TCP | 入站 | 30000-32767 | NodePort 服务** | 所有组件 |
189184

190-
** [NodePort 服务](/docs/concepts/services-networking/service/) 的默认端口范围。
185+
** [NodePort 服务](/zh/docs/concepts/services-networking/service/) 的默认端口范围。
191186

192187
使用 * 标记的任意端口号都可以被覆盖,所以您需要保证所定制的端口是开放的。
193188

@@ -255,7 +250,7 @@ Refer to the [CRI installation instructions](/docs/setup/cri) for more informati
255250
- [cri-o](https://cri-o.io/)
256251
- [frakti](https://github.com/kubernetes/frakti)
257252

258-
请参考 [CRI 安装指南](/docs/setup/cri) 获取更多信息。
253+
请参考 [CRI 安装指南](/zh/docs/setup/production-environment/container-runtimes/)获取更多信息。
259254

260255
<!--
261256
## Installing kubeadm, kubelet and kubectl
@@ -294,15 +289,16 @@ kubeadm **不能** 帮您安装或者管理 `kubelet` 或 `kubectl`,所以您
294289
然而,控制平面与 kubelet 间的相差一个次要版本不一致是支持的,但 kubelet 的版本不可以超过 API 服务器的版本。
295290
例如,1.7.0 版本的 kubelet 可以完全兼容 1.8.0 版本的 API 服务器,反之则不可以。
296291

297-
有关安装 `kubectl` 的信息,请参阅[安装和设置 kubectl](/docs/tasks/tools/install-kubectl/)文档。
292+
有关安装 `kubectl` 的信息,请参阅[安装和设置 kubectl](/zh/docs/tasks/tools/install-kubectl/)文档。
298293

299294
{{< warning >}}
300295
<!--
301296
These instructions exclude all Kubernetes packages from any system upgrades.
302297
This is because kubeadm and Kubernetes require
303298
[special attention to upgrade](/docs/tasks/administer-cluster/kubeadm/kubeadm-upgrade-1-14/).
304299
-->
305-
这些指南不包括系统升级时使用的所有 Kubernetes 程序包。这是因为 kubeadm 和 Kubernetes 有[特殊的升级注意事项](/docs/tasks/administer-cluster/kubeadm/kubeadm-upgrade-1-14/)
300+
这些指南不包括系统升级时使用的所有 Kubernetes 程序包。这是因为 kubeadm 和 Kubernetes
301+
[特殊的升级注意事项](/zh/docs/tasks/administer-cluster/kubeadm/kubeadm-upgrade/)
306302
{{</ warning >}}
307303

308304
<!--
@@ -313,8 +309,8 @@ For more information on version skews, see:
313309
-->
314310
关于版本偏差的更多信息,请参阅以下文档:
315311

316-
* Kubernetes [版本与版本间的偏差策略](/docs/setup/release/version-skew-policy/)
317-
* Kubeadm-specific [版本偏差策略](/docs/setup/production-environment/tools/kubeadm/create-cluster-kubeadm/#version-skew-policy)
312+
* Kubernetes [版本与版本间的偏差策略](/zh/docs/setup/release/version-skew-policy/)
313+
* Kubeadm-specific [版本偏差策略](/zh/docs/setup/production-environment/tools/kubeadm/create-cluster-kubeadm/#version-skew-policy)
318314

319315
{{< tabs name="k8s_install" >}}
320316
{{% tab name="Ubuntu、Debian 或 HypriotOS" %}}
@@ -506,14 +502,14 @@ If you are running into difficulties with kubeadm, please consult our [troublesh
506502
-->
507503
## 故障排查
508504
509-
如果您在使用 kubeadm 时遇到困难,请参阅我们的[故障排查文档](/docs/setup/production-environment/tools/kubeadm/troubleshooting-kubeadm/)。
505+
如果您在使用 kubeadm 时遇到困难,请参阅我们的
506+
[故障排查文档](/zh/docs/setup/production-environment/tools/kubeadm/troubleshooting-kubeadm/)。
510507
511508
## {{% heading "whatsnext" %}}
512509
513510
514511
<!--
515512
* [Using kubeadm to Create a Cluster](/docs/setup/production-environment/tools/kubeadm/create-cluster-kubeadm/)
516513
-->
517-
* [使用 kubeadm 创建集群](/docs/setup/production-environment/tools/kubeadm/create-cluster-kubeadm/)
518-
514+
* [使用 kubeadm 创建集群](/zh/docs/setup/production-environment/tools/kubeadm/create-cluster-kubeadm/)
519515

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ characteristics of a given machine, such as OS, storage, and networking. You can
3636
of your kubelets manually, but [kubeadm now provides a `KubeletConfiguration` API type for managing your
3737
kubelet configurations centrally](#configure-kubelets-using-kubeadm).
3838
-->
39-
kubeadm CLI 工具的生命周期与 [kubelet](/docs/reference/command-line-tools-reference/kubelet)解耦,它是一个守护程序,在 Kubernetes 集群中的每个节点上运行。
39+
kubeadm CLI 工具的生命周期与 [kubelet](/zh/docs/reference/command-line-tools-reference/kubelet)解耦,它是一个守护程序,在 Kubernetes 集群中的每个节点上运行。
4040
当 Kubernetes 初始化或升级时,kubeadm CLI 工具由用户执行,而 kubelet 始终在后台运行。
4141

4242
由于kubelet是守护程序,因此需要通过某种初始化系统或服务管理器进行维护。

content/zh/docs/setup/production-environment/tools/kubeadm/setup-ha-etcd-with-kubeadm.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -414,17 +414,15 @@ kubeadm 包含生成下述证书所需的所有必要的密码学工具;在这
414414
-->
415415
- 将 `${HOST0}` 设置为要测试的主机的 IP 地址
416416
417-
418-
419417
## {{% heading "whatsnext" %}}
420418
421-
422419
<!--
423420
Once your have a working 3 member etcd cluster, you can continue setting up a
424421
highly available control plane using the [external etcd method with
425422
kubeadm](/docs/setup/independent/high-availability/).
426423
-->
427-
一旦拥有了一个正常工作的 3 成员的 etcd 集群,你就可以基于[使用 kubeadm 的外部 etcd 方法](/docs/setup/independent/high-availability/),继续部署一个高可用的控制平面。
428-
424+
一旦拥有了一个正常工作的 3 成员的 etcd 集群,你就可以基于
425+
[使用 kubeadm 的外部 etcd 方法](/zh/docs/setup/production-environment/tools/kubeadm/high-availability/),
426+
继续部署一个高可用的控制平面。
429427
430428

0 commit comments

Comments
 (0)