Skip to content

Commit d575183

Browse files
authored
Merge pull request #25401 from tengqm/zh-fix-links-3
[zh] Fix links in zh localization (3)
2 parents f06402e + b9e8fb6 commit d575183

22 files changed

+518
-356
lines changed

content/zh/docs/tasks/access-application-cluster/access-cluster.md

Lines changed: 207 additions & 134 deletions
Large diffs are not rendered by default.

content/zh/docs/tasks/access-application-cluster/configure-access-multiple-clusters.md

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ card:
55
name: tasks
66
weight: 40
77
---
8+
89
<!--
910
title: Configure Access to Multiple Clusters
1011
content_type: task
@@ -46,7 +47,7 @@ cluster's API server.
4647
要检查 {{< glossary_tooltip text="kubectl" term_id="kubectl" >}} 是否安装,
4748
执行 `kubectl version --client` 命令。
4849
kubectl 的版本应该与集群的 API 服务器
49-
[使用同一次版本号](/docs/setup/release/version-skew-policy/#kubectl)
50+
[使用同一次版本号](/zh/docs/setup/release/version-skew-policy/#kubectl)
5051

5152
<!-- steps -->
5253
<!--
@@ -67,7 +68,9 @@ Create a directory named `config-exercise`. In your
6768
假设用户有两个集群,一个用于正式开发工作,一个用于其它临时用途(scratch)。
6869
`development` 集群中,前端开发者在名为 `frontend` 的名字空间下工作,
6970
存储开发者在名为 `storage` 的名字空间下工作。 在 `scratch` 集群中,
70-
开发人员可能在默认名字空间下工作,也可能视情况创建附加的名字空间。 访问开发集群需要通过证书进行认证。 访问其它临时用途的集群需要通过用户名和密码进行认证。
71+
开发人员可能在默认名字空间下工作,也可能视情况创建附加的名字空间。
72+
访问开发集群需要通过证书进行认证。
73+
访问其它临时用途的集群需要通过用户名和密码进行认证。
7174

7275
创建名为 `config-exercise` 的目录。 在
7376
`config-exercise` 目录中,创建名为 `config-demo` 的文件,其内容为:
@@ -103,10 +106,10 @@ has the framework to describe two clusters, two users, and three contexts.
103106
Go to your `config-exercise` directory. Enter these commands to add cluster details to
104107
your configuration file:
105108
-->
109+
配置文件描述了集群、用户名和上下文。`config-demo` 文件中含有描述两个集群、
110+
两个用户和三个上下文的框架。
106111

107-
配置文件描述了集群、用户名和上下文。 `config-demo` 文件中含有描述两个集群、两个用户和三个上下文的框架。
108-
109-
进入 `config-exercise` 目录。 输入以下命令,将群集详细信息添加到配置文件中:
112+
进入 `config-exercise` 目录。输入以下命令,将群集详细信息添加到配置文件中:
110113

111114
```shell
112115
kubectl config --kubeconfig=config-demo set-cluster development --server=https://1.2.3.4 --certificate-authority=fake-ca-file
@@ -149,7 +152,8 @@ kubectl config --kubeconfig=config-demo set-context exp-scratch --cluster=scratc
149152
Open your `config-demo` file to see the added details. As an alternative to opening the
150153
`config-demo` file, you can use the `config view` command.
151154
-->
152-
打开 `config-demo` 文件查看添加的详细信息。 也可以使用 `config view` 命令进行查看:
155+
打开 `config-demo` 文件查看添加的详细信息。 也可以使用 `config view`
156+
命令进行查看:
153157

154158
```shell
155159
kubectl config --kubeconfig=config-demo view
@@ -369,7 +373,8 @@ For example:
369373
-->
370374
## 设置 KUBECONFIG 环境变量
371375

372-
查看是否有名为 `KUBECONFIG` 的环境变量。 如有,保存 `KUBECONFIG` 环境变量当前的值,以便稍后恢复。
376+
查看是否有名为 `KUBECONFIG` 的环境变量。
377+
如有,保存 `KUBECONFIG` 环境变量当前的值,以便稍后恢复。
373378
例如:
374379

375380
### Linux
@@ -522,11 +527,13 @@ Return your `KUBECONFIG` environment variable to its original value. For example
522527
将 `KUBECONFIG` 环境变量还原为原始值。 例如:
523528

524529
### Linux
530+
525531
```shell
526532
export KUBECONFIG=$KUBECONFIG_SAVED
527533
```
528534

529535
### Windows PowerShell
536+
530537
```shell
531538
$Env:KUBECONFIG=$ENV:KUBECONFIG_SAVED
532539
```

content/zh/docs/tasks/administer-cluster/access-cluster-services.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,9 @@ such as your desktop machine.
2626
-->
2727
## 访问集群上运行的服务
2828

29-
30-
在 Kubernetes 里,[Node](/zh/docs/concepts/architecture/nodes/)
29+
在 Kubernetes 里,[节点](/zh/docs/concepts/architecture/nodes/)
3130
[Pod](/zh/docs/concepts/workloads/pods/)
32-
[Service](/zh/docs/concepts/services-networking/services/) 都有自己的 IP。
31+
[服务](/zh/docs/concepts/services-networking/service/) 都有自己的 IP。
3332
许多情况下,集群上的节点 IP、Pod IP 和某些服务 IP 是路由不可达的,
3433
所以不能从集群之外访问它们,例如从你自己的台式机。
3534

@@ -57,7 +56,7 @@ You have several options for connecting to nodes, pods and services from outside
5756
-->
5857
- 通过公网 IP 访问服务
5958
- 使用类型为 `NodePort``LoadBalancer` 的服务,可以从外部访问它们。
60-
请查阅[服务](/zh/docs/concepts/services-networking/services/)
59+
请查阅[服务](/zh/docs/concepts/services-networking/service/)
6160
[kubectl expose](/docs/reference/generated/kubectl/kubectl-commands/#expose) 文档。
6261
- 取决于你的集群环境,你可以仅把服务暴露在你的企业网络环境中,也可以将其暴露在
6362
因特网上。需要考虑暴露的服务是否安全,它是否有自己的用户认证?
@@ -134,13 +133,16 @@ at `https://104.197.5.247/api/v1/namespaces/kube-system/services/elasticsearch-l
134133
-->
135134
这一输出显示了用 proxy 动词访问每个服务时可用的 URL。例如,此集群
136135
(使用 Elasticsearch)启用了集群层面的日志。如果提供合适的凭据,可以通过
137-
`https://104.197.5.247/api/v1/namespaces/kube-system/services/elasticsearch-logging/proxy/` 访问,或通过一个 `kubectl proxy` 来访问:`http://localhost:8080/api/v1/namespaces/kube-system/services/elasticsearch-logging/proxy/`
136+
`https://104.197.5.247/api/v1/namespaces/kube-system/services/elasticsearch-logging/proxy/`
137+
访问,或通过一个 `kubectl proxy` 来访问:
138+
`http://localhost:8080/api/v1/namespaces/kube-system/services/elasticsearch-logging/proxy/`
138139

139140
<!--
140141
See [Access Clusters Using the Kubernetes API](/docs/tasks/administer-cluster/access-cluster-api/#accessing-the-cluster-api) for how to pass credentials or use kubectl proxy.
141142
-->
142143
{{< note >}}
143-
请参阅[使用 Kubernets API 访问集群](/docs/tasks/administer-cluster/access-cluster-api/#accessing-the-cluster-api)了解如何传递凭据或如何使用 `kubectl proxy`
144+
请参阅[使用 Kubernets API 访问集群](/zh/docs/tasks/administer-cluster/access-cluster-api/#accessing-the-cluster-api)
145+
了解如何传递凭据或如何使用 `kubectl proxy`
144146
{{< /note >}}
145147

146148
<!--

content/zh/docs/tasks/administer-cluster/change-default-storage-class.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ for details.
3030

3131
取决于安装模式,你的 Kubernetes 集群可能和一个被标记为默认的已有 StorageClass 一起部署。
3232
这个默认的 StorageClass 以后将被用于动态的为没有特定存储类需求的 PersistentVolumeClaims
33-
配置存储。更多细节请查看 [PersistentVolumeClaim 文档](/zh/docs/user-guide/persistent-volumes/#class-1)
33+
配置存储。更多细节请查看
34+
[PersistentVolumeClaim 文档](/zh/docs/concepts/storage/persistent-volumes/#perspersistentvolumeclaims)
3435

3536
<!--
3637
The pre-installed default StorageClass may not fit well with your expected workload;
@@ -138,7 +139,7 @@ for details about addon manager and how to disable individual addons.
138139
-->
139140
输出类似这样:
140141

141-
```bash
142+
```
142143
NAME PROVISIONER AGE
143144
standard kubernetes.io/gce-pd 1d
144145
gold (default) kubernetes.io/gce-pd 1d
@@ -149,5 +150,5 @@ for details about addon manager and how to disable individual addons.
149150
<!--
150151
* Learn more about [PersistentVolumes](/docs/concepts/storage/persistent-volumes/).
151152
-->
152-
* 进一步了解 [StorageClasses](/docs/concepts/storage/persistent-volumes/)
153+
* 进一步了解 [PersistentVolumes](/zh/docs/concepts/storage/persistent-volumes/)
153154

content/zh/docs/tasks/administer-cluster/change-pv-reclaim-policy.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
title: 更改 PersistentVolume 的回收策略
33
content_type: task
44
---
5+
56
<!-- overview -->
7+
68
<!--
79
This page shows how to change the reclaim policy of a Kubernetes
810
PersistentVolume.
@@ -131,8 +133,8 @@ PersistentVolumes 可以有多种回收策略,包括 "Retain"、"Recycle" 和
131133
* Learn more about [PersistentVolumes](/docs/concepts/storage/persistent-volumes/).
132134
* Learn more about [PersistentVolumeClaims](/docs/concepts/storage/persistent-volumes/#persistentvolumeclaims).
133135
-->
134-
* 进一步了解 [PersistentVolumes](/docs/concepts/storage/persistent-volumes/)
135-
* 进一步了解 [PersistentVolumeClaims](/docs/concepts/storage/persistent-volumes/#persistentvolumeclaims)
136+
* 进一步了解 [PersistentVolumes](/zh/docs/concepts/storage/persistent-volumes/)
137+
* 进一步了解 [PersistentVolumeClaims](/zh/docs/concepts/storage/persistent-volumes/#persistentvolumeclaims)
136138

137139
### 参考
138140

0 commit comments

Comments
 (0)