Skip to content

Commit 19a4a3d

Browse files
authored
Merge pull request #34515 from howieyuen/setup
[zh]Update setup pages for links with '/zh/' prefix, using new prefix '/zh-cn/'
2 parents 5480f1d + 648bf63 commit 19a4a3d

18 files changed

+189
-189
lines changed

content/zh-cn/docs/setup/_index.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ There are also other standardized and custom solutions across a wide range of cl
5757
bare metal environments.
5858
-->
5959
可以[下载 Kubernetes](/releases/download/),在本地机器、云或你自己的数据中心上部署 Kubernetes 集群。
60-
如果你不想自己管理 Kubernetes 集群,则可以选择托管服务,包括[经过认证的平台](/zh/docs/setup/production-environment/turnkey-solutions/)
60+
如果你不想自己管理 Kubernetes 集群,则可以选择托管服务,包括[经过认证的平台](/zh-cn/docs/setup/production-environment/turnkey-solutions/)
6161
在各种云和裸机环境中,还有其他标准化和定制的解决方案。
6262
<!-- body -->
6363

@@ -73,7 +73,7 @@ See [Install tools](/docs/tasks/tools/).
7373
-->
7474
如果正打算学习 Kubernetes,请使用 Kubernetes 社区支持
7575
或生态系统中的工具在本地计算机上设置 Kubernetes 集群。
76-
请参阅[安装工具](/zh/docs/tasks/tools/)
76+
请参阅[安装工具](/zh-cn/docs/tasks/tools/)
7777

7878
<!--
7979
## Production environment
@@ -89,11 +89,11 @@ prefer to hand off to a provider.
8989
For a cluster you're managing yourself, the officially supported tool
9090
for deploying Kubernetes is [kubeadm](/docs/setup/production-environment/tools/kubeadm/).
9191
-->
92-
在评估[生产环境](/zh/docs/setup/production-environment/)的解决方案时,
92+
在评估[生产环境](/zh-cn/docs/setup/production-environment/)的解决方案时,
9393
请考虑要自己管理 Kubernetes 集群(或相关抽象)的哪些方面,将哪些托付给提供商。
9494

9595
对于你自己管理的集群,官方支持的用于部署 Kubernetes 的工具是
96-
[kubeadm](/zh/docs/setup/production-environment/tools/kubeadm/)
96+
[kubeadm](/zh-cn/docs/setup/production-environment/tools/kubeadm/)
9797

9898
<!--
9999
## {{% heading "whatsnext" %}}
@@ -111,10 +111,10 @@ Windows.
111111
## {{% heading "whatsnext" %}}
112112

113113
- [下载 Kubernetes](/releases/download/)
114-
- 下载并[安装工具](/zh/docs/tasks/tools/),包括 kubectl 在内
115-
- 为新集群选择[容器运行时](/zh/docs/setup/production-environment/container-runtimes/)
116-
- 了解集群设置的[最佳实践](/zh/docs/setup/best-practices/)
114+
- 下载并[安装工具](/zh-cn/docs/tasks/tools/),包括 kubectl 在内
115+
- 为新集群选择[容器运行时](/zh-cn/docs/setup/production-environment/container-runtimes/)
116+
- 了解集群设置的[最佳实践](/zh-cn/docs/setup/best-practices/)
117117

118118
Kubernetes 的设计是让其{{< glossary_tooltip term_id="control-plane" text="控制平面" >}}在 Linux 上运行的。
119119
在集群中,你可以在 Linux 或其他操作系统(包括 Windows)上运行应用程序。
120-
- 学习[配置包含 Windows 节点的集群](/zh/docs/setup/production-environment/windows/)
120+
- 学习[配置包含 Windows 节点的集群](/zh-cn/docs/setup/production-environment/windows/)

content/zh-cn/docs/setup/best-practices/certificates.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ You can also generate your own certificates -- for example, to keep your private
2020
This page explains the certificates that your cluster requires.
2121
-->
2222
Kubernetes 需要 PKI 证书才能进行基于 TLS 的身份验证。如果你是使用
23-
[kubeadm](/zh/docs/reference/setup-tools/kubeadm/) 安装的 Kubernetes,
23+
[kubeadm](/zh-cn/docs/reference/setup-tools/kubeadm/) 安装的 Kubernetes,
2424
则会自动生成集群所需的证书。你还可以生成自己的证书。
2525
例如,不将私钥存储在 API 服务器上,可以让私钥更加安全。此页面说明了集群必需的证书。
2626

@@ -48,22 +48,22 @@ Kubernetes 需要 PKI 才能执行以下操作:
4848
* Client and server certificates for the [front-proxy](/docs/tasks/extend-kubernetes/configure-aggregation-layer/)
4949
-->
5050
* Kubelet 的客户端证书,用于 API 服务器身份验证
51-
* Kubelet [服务端证书](/zh/docs/reference/access-authn-authz/kubelet-tls-bootstrapping/#client-and-serving-certificates)
51+
* Kubelet [服务端证书](/zh-cn/docs/reference/access-authn-authz/kubelet-tls-bootstrapping/#client-and-serving-certificates)
5252
用于 API 服务器与 Kubelet 的会话
5353
* API 服务器端点的证书
5454
* 集群管理员的客户端证书,用于 API 服务器身份认证
5555
* API 服务器的客户端证书,用于和 Kubelet 的会话
5656
* API 服务器的客户端证书,用于和 etcd 的会话
5757
* 控制器管理器的客户端证书/kubeconfig,用于和 API 服务器的会话
5858
* 调度器的客户端证书/kubeconfig,用于和 API 服务器的会话
59-
* [前端代理](/zh/docs/tasks/extend-kubernetes/configure-aggregation-layer/) 的客户端及服务端证书
59+
* [前端代理](/zh-cn/docs/tasks/extend-kubernetes/configure-aggregation-layer/) 的客户端及服务端证书
6060

6161
<!--
6262
`front-proxy` certificates are required only if you run kube-proxy to support [an extension API server](/docs/tasks/extend-kubernetes/setup-extension-api-server/).
6363
-->
6464
{{< note >}}
6565
只有当你运行 kube-proxy 并要支持
66-
[扩展 API 服务器](/zh/docs/tasks/extend-kubernetes/setup-extension-api-server/)
66+
[扩展 API 服务器](/zh-cn/docs/tasks/extend-kubernetes/setup-extension-api-server/)
6767
时,才需要 `front-proxy` 证书
6868
{{< /note >}}
6969

@@ -92,8 +92,8 @@ See [Certificate Management with kubeadm](/docs/tasks/administer-cluster/kubeadm
9292

9393
如果你不想通过 kubeadm 生成这些必需的证书,你可以使用一个单一的根 CA
9494
来创建这些证书或者直接提供所有证书。
95-
参见[证书](/zh/docs/tasks/administer-cluster/certificates/)以进一步了解创建自己的证书机构。
96-
关于管理证书的更多信息,请参见[使用 kubeadm 进行证书管理](/zh/docs/tasks/administer-cluster/kubeadm/kubeadm-certs/)
95+
参见[证书](/zh-cn/docs/tasks/administer-cluster/certificates/)以进一步了解创建自己的证书机构。
96+
关于管理证书的更多信息,请参见[使用 kubeadm 进行证书管理](/zh-cn/docs/tasks/administer-cluster/kubeadm/kubeadm-certs/)
9797

9898
<!--
9999
### Single root CA
@@ -121,7 +121,7 @@ On top of the above CAs, it is also necessary to get a public/private key pair f
121121
|------------------------|---------------------------|----------------------------------|
122122
| ca.crt,key | kubernetes-ca | Kubernetes 通用 CA |
123123
| etcd/ca.crt,key | etcd-ca | 与 etcd 相关的所有功能 |
124-
| front-proxy-ca.crt,key | kubernetes-front-proxy-ca | 用于 [前端代理](/zh/docs/tasks/extend-kubernetes/configure-aggregation-layer/) |
124+
| front-proxy-ca.crt,key | kubernetes-front-proxy-ca | 用于 [前端代理](/zh-cn/docs/tasks/extend-kubernetes/configure-aggregation-layer/) |
125125

126126
上面的 CA 之外,还需要获取用于服务账户管理的密钥对,也就是 `sa.key``sa.pub`
127127

@@ -181,7 +181,7 @@ the load balancer stable IP and/or DNS name, `kubernetes`, `kubernetes.default`,
181181
where `kind` maps to one or more of the [x509 key usage](https://pkg.go.dev/k8s.io/api/certificates/v1beta1#KeyUsage) types:
182182
-->
183183
[1]: 用来连接到集群的不同 IP 或 DNS 名
184-
(就像 [kubeadm](/zh/docs/reference/setup-tools/kubeadm/) 为负载均衡所使用的固定
184+
(就像 [kubeadm](/zh-cn/docs/reference/setup-tools/kubeadm/) 为负载均衡所使用的固定
185185
IP 或 DNS 名,`kubernetes``kubernetes.default``kubernetes.default.svc`
186186
`kubernetes.default.svc.cluster``kubernetes.default.svc.cluster.local`)。
187187

@@ -228,7 +228,7 @@ Paths should be specified using the given argument regardless of location.
228228
-->
229229
### 证书路径 {#certificate-paths}
230230

231-
证书应放置在建议的路径中(以便 [kubeadm](/zh/docs/reference/setup-tools/kubeadm/)
231+
证书应放置在建议的路径中(以便 [kubeadm](/zh-cn/docs/reference/setup-tools/kubeadm/)
232232
使用)。无论使用什么位置,都应使用给定的参数指定路径。
233233

234234
<!--
@@ -286,7 +286,7 @@ Same considerations apply for the service account key pair:
286286
The following example illustrates the file paths [from the previous tables](/docs/setup/best-practices/certificates/#certificate-paths) you need to provide if you are generating all of your own keys and certificates:
287287
-->
288288
下面的例子展示了自行生成所有密钥和证书时所需要提供的文件路径。
289-
这些路径基于[前面的表格](/zh/docs/setup/best-practices/certificates/#certificate-paths)
289+
这些路径基于[前面的表格](/zh-cn/docs/setup/best-practices/certificates/#certificate-paths)
290290

291291
```console
292292
/etc/kubernetes/pki/etcd/ca.key
@@ -342,7 +342,7 @@ The value of `<nodeName>` for `kubelet.conf` **must** match precisely the value
342342
-->
343343
{{< note >}}
344344
`kubelet.conf``<nodeName>` 的值 **必须** 与 kubelet 向 apiserver 注册时提供的节点名称的值完全匹配。
345-
有关更多详细信息,请阅读[节点授权](/zh/docs/reference/access-authn-authz/node/)
345+
有关更多详细信息,请阅读[节点授权](/zh-cn/docs/reference/access-authn-authz/node/)
346346
{{< /note >}}
347347

348348
<!--

content/zh-cn/docs/setup/best-practices/cluster-large.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,8 @@ See [Operating etcd clusters for Kubernetes](/docs/tasks/administer-cluster/conf
138138
for details on configuring and managing etcd for a large cluster.
139139
-->
140140
有关为大型集群配置和管理 etcd 的详细信息,请参阅
141-
[为 Kubernetes 运行 etcd 集群](/zh/docs/tasks/administer-cluster/configure-upgrade-etcd/)
142-
和使用 [kubeadm 创建一个高可用 etcd 集群](/zh/docs/setup/production-environment/tools/kubeadm/setup-ha-etcd-with-kubeadm/)
141+
[为 Kubernetes 运行 etcd 集群](/zh-cn/docs/tasks/administer-cluster/configure-upgrade-etcd/)
142+
和使用 [kubeadm 创建一个高可用 etcd 集群](/zh-cn/docs/setup/production-environment/tools/kubeadm/setup-ha-etcd-with-kubeadm/)
143143

144144
<!--
145145
### Addon Resources
@@ -154,7 +154,7 @@ impact on other components. These resource limits apply to
154154
155155
For example, you can set CPU and memory limits for a logging component:
156156
-->
157-
Kubernetes [资源限制](/zh/docs/concepts/configuration/manage-resources-containers/)
157+
Kubernetes [资源限制](/zh-cn/docs/concepts/configuration/manage-resources-containers/)
158158
有助于最大程度地减少内存泄漏的影响以及 Pod 和容器可能对其他组件的其他方式的影响。
159159
这些资源限制适用于{{< glossary_tooltip text="插件" term_id="addons" >}}资源,
160160
就像它们适用于应用程序工作负载一样。

content/zh-cn/docs/setup/best-practices/enforcing-pod-security-standards.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ weight: 40
1717
This page provides an overview of best practices when it comes to enforcing
1818
[Pod Security Standards](/docs/concepts/security/pod-security-standards).
1919
-->
20-
本页提供实施 [Pod 安全标准(Pod Security Standards)](/zh/docs/concepts/security/pod-security-standards)
20+
本页提供实施 [Pod 安全标准(Pod Security Standards)](/zh-cn/docs/concepts/security/pod-security-standards)
2121
时的一些最佳实践。
2222

2323
<!-- body -->
@@ -33,7 +33,7 @@ This page provides an overview of best practices when it comes to enforcing
3333
The [Pod Security Admission Controller](/docs/reference/access-authn-authz/admission-controllers/#podsecurity)
3434
intends to replace the deprecated PodSecurityPolicies.
3535
-->
36-
[Pod 安全性准入控制器](/zh/docs/reference/access-authn-authz/admission-controllers/#podsecurity)
36+
[Pod 安全性准入控制器](/zh-cn/docs/reference/access-authn-authz/admission-controllers/#podsecurity)
3737
尝试替换已被废弃的 PodSecurityPolicies。
3838

3939
<!--
@@ -58,7 +58,7 @@ we provide an [example](/docs/concepts/security/pod-security-admission/#applying
5858
that illustrates how the PodSecurity labels can be applied in bulk.
5959
-->
6060
针对所有名字空间中的所有负载都具有相同的安全性需求的场景,
61-
我们提供了一个[示例](/zh/docs/concepts/security/pod-security-admission/#applying-to-all-namespaces)
61+
我们提供了一个[示例](/zh-cn/docs/concepts/security/pod-security-admission/#applying-to-all-namespaces)
6262
用来展示如何批量应用 Pod 安全性标签。
6363

6464
<!--

content/zh-cn/docs/setup/best-practices/multiple-zones.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ component.
5353
-->
5454
## 控制面行为 {#control-plane-behavior}
5555

56-
所有的[控制面组件](/zh/docs/concepts/overview/components/#control-plane-components)
56+
所有的[控制面组件](/zh-cn/docs/concepts/overview/components/#control-plane-components)
5757
都支持以一组可相互替换的资源池的形式来运行,每个组件都有多个副本。
5858

5959
<!--
@@ -108,7 +108,7 @@ These labels can include
108108
-->
109109
节点启动时,每个节点上的 kubelet 会向 Kubernetes API 中代表该 kubelet 的 Node 对象
110110
添加 {{< glossary_tooltip text="标签" term_id="label" >}}。
111-
这些标签可能包含[区信息](/zh/docs/reference/labels-annotations-taints/#topologykubernetesiozone)
111+
这些标签可能包含[区信息](/zh-cn/docs/reference/labels-annotations-taints/#topologykubernetesiozone)
112112

113113
<!--
114114
If your cluster spans multiple zones or regions, you can use node labels
@@ -122,7 +122,7 @@ Pods for better expected availability, reducing the risk that a correlated
122122
failure affects your whole workload.
123123
-->
124124
如果你的集群跨了多个可用区或者地理区域,你可以使用节点标签,结合
125-
[Pod 拓扑分布约束](/zh/docs/concepts/workloads/pods/pod-topology-spread-constraints/)
125+
[Pod 拓扑分布约束](/zh-cn/docs/concepts/workloads/pods/pod-topology-spread-constraints/)
126126
来控制如何在你的集群中多个失效域之间分布 Pods。这里的失效域可以是
127127
地理区域、可用区甚至是特定节点。
128128
这些提示信息使得{{< glossary_tooltip text="调度器" term_id="kube-scheduler" >}}
@@ -178,7 +178,7 @@ You can apply [node selector constraints](/docs/concepts/scheduling-eviction/ass
178178
to Pods that you create, as well as to Pod templates in workload resources
179179
such as Deployment, StatefulSet, or Job.
180180
-->
181-
你可以应用[节点选择算符约束](/zh/docs/concepts/scheduling-eviction/assign-pod-node/#nodeselector)
181+
你可以应用[节点选择算符约束](/zh-cn/docs/concepts/scheduling-eviction/assign-pod-node/#nodeselector)
182182
到你所创建的 Pods 上,或者为 Deployment、StatefulSet 或 Job 这类工作负载资源
183183
中的 Pod 模板设置此类约束。
184184

@@ -195,7 +195,7 @@ are only placed into the same zone as that volume.
195195
## 跨区的存储访问
196196

197197
当创建持久卷时,`PersistentVolumeLabel`
198-
[准入控制器](/zh/docs/reference/access-authn-authz/admission-controllers/)
198+
[准入控制器](/zh-cn/docs/reference/access-authn-authz/admission-controllers/)
199199
会自动向那些链接到特定区的 PersistentVolume 添加区标签。
200200
{{< glossary_tooltip text="调度器" term_id="kube-scheduler" >}}通过其
201201
`NoVolumeZoneConflict` 断言确保申领给定 PersistentVolume 的 Pods 只会
@@ -211,7 +211,7 @@ see [Allowed topologies](/docs/concepts/storage/storage-classes/#allowed-topolog
211211
你可以为 PersistentVolumeClaim 指定{{< glossary_tooltip text="StorageClass" term_id="storage-class" >}}
212212
以设置该类中的存储可以使用的失效域(区)。
213213
要了解如何配置能够感知失效域或区的 StorageClass,请参阅
214-
[可用的拓扑逻辑](/zh/docs/concepts/storage/storage-classes/#allowed-topologies)
214+
[可用的拓扑逻辑](/zh-cn/docs/concepts/storage/storage-classes/#allowed-topologies)
215215

216216
<!--
217217
## Networking
@@ -227,7 +227,7 @@ Check your cloud provider's documentation for details.
227227
## 网络 {#networking}
228228

229229
Kubernetes 自身不提供与可用区相关的联网配置。
230-
你可以使用[网络插件](/zh/docs/concepts/extend-kubernetes/compute-storage-net/network-plugins/)
230+
你可以使用[网络插件](/zh-cn/docs/concepts/extend-kubernetes/compute-storage-net/network-plugins/)
231231
来配置集群的联网,该网络解决方案可能拥有一些与可用区相关的元素。
232232
例如,如果你的云提供商支持 `type=LoadBalancer` 的 Service,则负载均衡器
233233
可能仅会将请求流量发送到运行在负责处理给定连接的负载均衡器组件所在的区。
@@ -278,5 +278,5 @@ To learn how the scheduler places Pods in a cluster, honoring the configured con
278278
visit [Scheduling and Eviction](/docs/concepts/scheduling-eviction/).
279279
-->
280280
要了解调度器如何在集群中放置 Pods 并遵从所配置的约束,可参阅
281-
[调度与驱逐](/zh/docs/concepts/scheduling-eviction/)
281+
[调度与驱逐](/zh-cn/docs/concepts/scheduling-eviction/)
282282

0 commit comments

Comments
 (0)