Skip to content

Commit fb38dd6

Browse files
committed
add zh/ prefix of links in zh/ directory
1 parent 0854666 commit fb38dd6

File tree

11 files changed

+166
-166
lines changed

11 files changed

+166
-166
lines changed

content/zh/docs/tutorials/_index.md

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,17 @@ content_template: templates/concept
1616

1717
{{% capture overview %}}
1818

19-
Kubernetes 文档的这一部分包含教程。一个教程展示了如何完成一个比单个[任务](/docs/tasks/)更大的目标。
19+
Kubernetes 文档的这一部分包含教程。一个教程展示了如何完成一个比单个[任务](zh/docs/tasks/)更大的目标。
2020
通常一个教程有几个部分,每个部分都有一系列步骤。在浏览每个教程之前,
21-
您可能希望将[标准化术语表](/docs/reference/glossary/)页面添加到书签,供以后参考。
21+
您可能希望将[标准化术语表](zh/docs/reference/glossary/)页面添加到书签,供以后参考。
2222

2323
<!--
2424
This section of the Kubernetes documentation contains tutorials.
2525
A tutorial shows how to accomplish a goal that is larger than a single
26-
[task](/docs/tasks/). Typically a tutorial has several sections,
26+
[task](zh/docs/tasks/). Typically a tutorial has several sections,
2727
each of which has a sequence of steps.
2828
Before walking through each tutorial, you may want to bookmark the
29-
[Standardized Glossary](/docs/reference/glossary/) page for later references.
29+
[Standardized Glossary](zh/docs/reference/glossary/) page for later references.
3030
-->
3131

3232
{{% /capture %}}
@@ -39,10 +39,10 @@ Before walking through each tutorial, you may want to bookmark the
3939
## Basics
4040
-->
4141

42-
* [Kubernetes 基础知识](/docs/tutorials/Kubernetes-Basics/)是一个深入的交互式教程,帮助您理解 Kubernetes 系统,并尝试一些基本的 Kubernetes 特性。
42+
* [Kubernetes 基础知识](zh/docs/tutorials/Kubernetes-Basics/)是一个深入的交互式教程,帮助您理解 Kubernetes 系统,并尝试一些基本的 Kubernetes 特性。
4343

4444
<!--
45-
* [Kubernetes Basics](/docs/tutorials/kubernetes-basics/) is an in-depth interactive tutorial that helps you understand the Kubernetes system and try out some basic Kubernetes features.
45+
* [Kubernetes Basics](zh/docs/tutorials/kubernetes-basics/) is an in-depth interactive tutorial that helps you understand the Kubernetes system and try out some basic Kubernetes features.
4646
-->
4747

4848
* [使用 Kubernetes (Udacity) 的可伸缩微服务](https://www.udacity.com/course/scalable-microservices-with-kubernetes--ud615)
@@ -57,10 +57,10 @@ Before walking through each tutorial, you may want to bookmark the
5757
* [Introduction to Kubernetes (edX)](https://www.edx.org/course/introduction-kubernetes-linuxfoundationx-lfs158x#)
5858
-->
5959

60-
* [你好 Minikube](/docs/tutorials/hello-minikube/)
60+
* [你好 Minikube](zh/docs/tutorials/hello-minikube/)
6161

6262
<!--
63-
* [Hello Minikube](/docs/tutorials/hello-minikube/)
63+
* [Hello Minikube](zh/docs/tutorials/hello-minikube/)
6464
-->
6565

6666
## 配置
@@ -69,10 +69,10 @@ Before walking through each tutorial, you may want to bookmark the
6969
## Configuration
7070
-->
7171

72-
* [使用一个 ConfigMap 配置 Redis](/docs/tutorials/configuration/configure-redis-using-configmap/)
72+
* [使用一个 ConfigMap 配置 Redis](zh/docs/tutorials/configuration/configure-redis-using-configmap/)
7373

7474
<!--
75-
* [Configuring Redis Using a ConfigMap](/docs/tutorials/configuration/configure-redis-using-configmap/)
75+
* [Configuring Redis Using a ConfigMap](zh/docs/tutorials/configuration/configure-redis-using-configmap/)
7676
-->
7777

7878
## 无状态应用程序
@@ -81,16 +81,16 @@ Before walking through each tutorial, you may want to bookmark the
8181
## Stateless Applications
8282
-->
8383

84-
* [公开外部 IP 地址访问集群中的应用程序](/docs/tutorials/stateless-application/expose-external-ip-address/)
84+
* [公开外部 IP 地址访问集群中的应用程序](zh/docs/tutorials/stateless-application/expose-external-ip-address/)
8585

8686
<!--
87-
* [Exposing an External IP Address to Access an Application in a Cluster](/docs/tutorials/stateless-application/expose-external-ip-address/)
87+
* [Exposing an External IP Address to Access an Application in a Cluster](zh/docs/tutorials/stateless-application/expose-external-ip-address/)
8888
-->
8989

90-
* [示例:使用 Redis 部署 PHP 留言板应用程序](/docs/tutorials/stateless-application/guestbook/)
90+
* [示例:使用 Redis 部署 PHP 留言板应用程序](zh/docs/tutorials/stateless-application/guestbook/)
9191

9292
<!--
93-
* [Example: Deploying PHP Guestbook application with Redis](/docs/tutorials/stateless-application/guestbook/)
93+
* [Example: Deploying PHP Guestbook application with Redis](zh/docs/tutorials/stateless-application/guestbook/)
9494
-->
9595

9696
## 有状态应用程序
@@ -99,28 +99,28 @@ Before walking through each tutorial, you may want to bookmark the
9999
## Stateful Applications
100100
-->
101101

102-
* [StatefulSet 基础](/docs/tutorials/stateful-application/basic-stateful-set/)
102+
* [StatefulSet 基础](zh/docs/tutorials/stateful-application/basic-stateful-set/)
103103

104104
<!--
105-
* [StatefulSet Basics](/docs/tutorials/stateful-application/basic-stateful-set/)
105+
* [StatefulSet Basics](zh/docs/tutorials/stateful-application/basic-stateful-set/)
106106
-->
107107

108-
* [示例:WordPress 和 MySQL 使用持久卷](/docs/tutorials/stateful-application/mysql-wordpress-persistent-volume/)
108+
* [示例:WordPress 和 MySQL 使用持久卷](zh/docs/tutorials/stateful-application/mysql-wordpress-persistent-volume/)
109109

110110
<!--
111-
* [Example: WordPress and MySQL with Persistent Volumes](/docs/tutorials/stateful-application/mysql-wordpress-persistent-volume/)
111+
* [Example: WordPress and MySQL with Persistent Volumes](zh/docs/tutorials/stateful-application/mysql-wordpress-persistent-volume/)
112112
-->
113113

114-
* [示例:使用有状态集部署 Cassandra](/docs/tutorials/stateful-application/cassandra/)
114+
* [示例:使用有状态集部署 Cassandra](zh/docs/tutorials/stateful-application/cassandra/)
115115

116116
<!--
117-
* [Example: Deploying Cassandra with Stateful Sets](/docs/tutorials/stateful-application/cassandra/)
117+
* [Example: Deploying Cassandra with Stateful Sets](zh/docs/tutorials/stateful-application/cassandra/)
118118
-->
119119

120-
* [运行 ZooKeeper,CP 分布式系统](/docs/tutorials/stateful-application/zookeeper/)
120+
* [运行 ZooKeeper,CP 分布式系统](zh/docs/tutorials/stateful-application/zookeeper/)
121121

122122
<!--
123-
* [Running ZooKeeper, A CP Distributed System](/docs/tutorials/stateful-application/zookeeper/)
123+
* [Running ZooKeeper, A CP Distributed System](zh/docs/tutorials/stateful-application/zookeeper/)
124124
-->
125125

126126
## CI/CD 管道
@@ -155,33 +155,33 @@ Before walking through each tutorial, you may want to bookmark the
155155

156156
## 集群
157157

158-
* [AppArmor](/docs/tutorials/clusters/apparmor/)
158+
* [AppArmor](zh/docs/tutorials/clusters/apparmor/)
159159

160160
<!--
161161
## Clusters
162162
163-
* [AppArmor](/docs/tutorials/clusters/apparmor/)
163+
* [AppArmor](zh/docs/tutorials/clusters/apparmor/)
164164
-->
165165

166166
## 服务
167167

168-
* [使用源 IP](/docs/tutorials/services/source-ip/)
168+
* [使用源 IP](zh/docs/tutorials/services/source-ip/)
169169

170170
<!--
171171
## Services
172172
173-
* [Using Source IP](/docs/tutorials/services/source-ip/)
173+
* [Using Source IP](zh/docs/tutorials/services/source-ip/)
174174
-->
175175

176176
{{% /capture %}}
177177

178178
{{% capture whatsnext %}}
179179

180-
如果您想编写教程,请参阅[使用页面模板](/docs/home/contribute/page-templates/)
180+
如果您想编写教程,请参阅[使用页面模板](zh/docs/home/contribute/page-templates/)
181181
以获取有关教程页面类型和教程模板的信息。
182182
<!--
183183
If you would like to write a tutorial, see
184-
[Using Page Templates](/docs/home/contribute/page-templates/)
184+
[Using Page Templates](zh/docs/home/contribute/page-templates/)
185185
for information about the tutorial page type and the tutorial template.
186186
-->
187187

content/zh/docs/tutorials/clusters/apparmor.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -416,23 +416,23 @@ Events:
416416
nodes. There are lots of ways to setup the profiles though, such as: -->
417417
Kubernetes 目前不提供任何本地机制来将 AppArmor 配置文件加载到节点上。有很多方法可以设置配置文件,例如:
418418

419-
<!-- * Through a [DaemonSet](/docs/concepts/workloads/controllers/daemonset/) that runs a Pod on each node to
419+
<!-- * Through a [DaemonSet](/zh/docs/concepts/workloads/controllers/daemonset/) that runs a Pod on each node to
420420
ensure the correct profiles are loaded. An example implementation can be found
421421
[here](https://git.k8s.io/kubernetes/test/images/apparmor-loader).
422422
* At node initialization time, using your node initialization scripts (e.g. Salt, Ansible, etc.) or
423423
image.
424424
* By copying the profiles to each node and loading them through SSH, as demonstrated in the
425425
[Example](#example). -->
426-
* 通过在每个节点上运行 Pod 的[DaemonSet](/docs/concepts/workloads/controllers/daemonset/)确保加载了正确的配置文件。可以找到一个示例实现[这里](https://git.k8s.io/kubernetes/test/images/apparmor-loader)
426+
* 通过在每个节点上运行 Pod 的[DaemonSet](/zh/docs/concepts/workloads/controllers/daemonset/)确保加载了正确的配置文件。可以找到一个示例实现[这里](https://git.k8s.io/kubernetes/test/images/apparmor-loader)
427427
* 在节点初始化时,使用节点初始化脚本(例如 Salt 、Ansible 等)或镜像。
428428
* 通过将配置文件复制到每个节点并通过 SSH 加载它们,如[示例](#example)
429429

430430
<!-- The scheduler is not aware of which profiles are loaded onto which node, so the full set of profiles
431431
must be loaded onto every node. An alternative approach is to add a node label for each profile (or
432432
class of profiles) on the node, and use a
433-
[node selector](/docs/concepts/configuration/assign-pod-node/) to ensure the Pod is run on a
433+
[node selector](/zh/docs/concepts/configuration/assign-pod-node/) to ensure the Pod is run on a
434434
node with the required profile. -->
435-
调度程序不知道哪些配置文件加载到哪个节点上,因此必须将全套配置文件加载到每个节点上。另一种方法是为节点上的每个配置文件(或配置文件类)添加节点标签,并使用[节点选择器](/docs/concepts/configuration/assign pod node/)确保 Pod 在具有所需配置文件的节点上运行。
435+
调度程序不知道哪些配置文件加载到哪个节点上,因此必须将全套配置文件加载到每个节点上。另一种方法是为节点上的每个配置文件(或配置文件类)添加节点标签,并使用[节点选择器](/zh/docs/concepts/configuration/assign pod node/)确保 Pod 在具有所需配置文件的节点上运行。
436436

437437
<!-- ### Restricting profiles with the PodSecurityPolicy -->
438438
### 使用 PodSecurityPolicy 限制配置文件

content/zh/docs/tutorials/configuration/configure-redis-using-configmap.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ content_template: templates/tutorial
99
{{% capture overview %}}
1010

1111
<!--
12-
This page provides a real world example of how to configure Redis using a ConfigMap and builds upon the [Configure Containers Using a ConfigMap](/docs/tasks/configure-pod-container/configure-pod-configmap/) task.
12+
This page provides a real world example of how to configure Redis using a ConfigMap and builds upon the [Configure Containers Using a ConfigMap](/zh/docs/tasks/configure-pod-container/configure-pod-configmap/) task.
1313
-->
14-
这篇文档基于[使用 ConfigMap 来配置 Containers](/docs/tasks/configure-pod-container/configure-pod-configmap/) 这个任务,提供了一个使用 ConfigMap 来配置 Redis 的真实案例。
14+
这篇文档基于[使用 ConfigMap 来配置 Containers](/zh/docs/tasks/configure-pod-container/configure-pod-configmap/) 这个任务,提供了一个使用 ConfigMap 来配置 Redis 的真实案例。
1515

1616
{{% /capture %}}
1717

@@ -40,10 +40,10 @@ This page provides a real world example of how to configure Redis using a Config
4040
* {{< include "task-tutorial-prereqs.md" >}} {{< version-check >}}
4141
<!--
4242
* The example shown on this page works with `kubectl` 1.14 and above.
43-
* Understand [Configure Containers Using a ConfigMap](/docs/tasks/configure-pod-container/configure-pod-configmap/).
43+
* Understand [Configure Containers Using a ConfigMap](/zh/docs/tasks/configure-pod-container/configure-pod-configmap/).
4444
-->
4545
* 此页面上显示的示例适用于 `kubectl` 1.14和在其以上的版本。
46-
* 理解[使用ConfigMap来配置Containers](/docs/tasks/configure-pod-container/configure-pod-configmap/)
46+
* 理解[使用ConfigMap来配置Containers](/zh/docs/tasks/configure-pod-container/configure-pod-configmap/)
4747

4848
{{% /capture %}}
4949

@@ -156,9 +156,9 @@ kubectl delete pod redis
156156
{{% capture whatsnext %}}
157157

158158
<!--
159-
* Learn more about [ConfigMaps](/docs/tasks/configure-pod-container/configure-pod-configmap/).
159+
* Learn more about [ConfigMaps](/zh/docs/tasks/configure-pod-container/configure-pod-configmap/).
160160
-->
161-
* 了解有关 [ConfigMaps](/docs/tasks/configure-pod-container/configure-pod-configmap/)的更多信息。
161+
* 了解有关 [ConfigMaps](/zh/docs/tasks/configure-pod-container/configure-pod-configmap/)的更多信息。
162162

163163

164164
{{% /capture %}}

content/zh/docs/tutorials/hello-minikube.md

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -33,16 +33,16 @@ card:
3333

3434
<!--
3535
This tutorial shows you how to run a simple Hello World Node.js app
36-
on Kubernetes using [Minikube](/docs/setup/learning-environment/minikube) and Katacoda.
36+
on Kubernetes using [Minikube](zh/docs/setup/learning-environment/minikube) and Katacoda.
3737
Katacoda provides a free, in-browser Kubernetes environment.
3838
-->
39-
本教程向您展示如何使用 [Minikube](/docs/setup/learning-environment/minikube) 和 Katacoda 在 Kubernetes 上运行一个简单的 “Hello World” Node.js 应用程序。Katacoda 提供免费的浏览器内 Kubernetes 环境。
39+
本教程向您展示如何使用 [Minikube](zh/docs/setup/learning-environment/minikube) 和 Katacoda 在 Kubernetes 上运行一个简单的 “Hello World” Node.js 应用程序。Katacoda 提供免费的浏览器内 Kubernetes 环境。
4040

4141
{{< note >}}
4242
<!--
43-
You can also follow this tutorial if you've installed [Minikube locally](/docs/tasks/tools/install-minikube/).
43+
You can also follow this tutorial if you've installed [Minikube locally](zh/docs/tasks/tools/install-minikube/).
4444
-->
45-
如果您已在本地安装 [Minikube](/docs/tasks/tools/install-minikube/),也可以按照本教程操作。
45+
如果您已在本地安装 [Minikube](zh/docs/tasks/tools/install-minikube/),也可以按照本教程操作。
4646

4747
{{< /note >}}
4848

@@ -117,17 +117,17 @@ For more information on the `docker build` command, read the [Docker documentati
117117

118118
## Create a Deployment
119119

120-
A Kubernetes [*Pod*](/docs/concepts/workloads/pods/pod/) is a group of one or more Containers,
120+
A Kubernetes [*Pod*](zh/docs/concepts/workloads/pods/pod/) is a group of one or more Containers,
121121
tied together for the purposes of administration and networking. The Pod in this
122122
tutorial has only one Container. A Kubernetes
123-
[*Deployment*](/docs/concepts/workloads/controllers/deployment/) checks on the health of your
123+
[*Deployment*](zh/docs/concepts/workloads/controllers/deployment/) checks on the health of your
124124
Pod and restarts the Pod's Container if it terminates. Deployments are the
125125
recommended way to manage the creation and scaling of Pods.
126126
-->
127127
128128
## 创建 Deployment
129129
130-
Kubernetes [*Pod*](/docs/concepts/workloads/pods/pod/) 是由一个或多个为了管理和联网而绑定在一起的容器构成的组。本教程中的 Pod 只有一个容器。Kubernetes [*Deployment*](/docs/concepts/workloads/controllers/deployment/) 检查 Pod 的健康状况,并在 Pod 中的容器终止的情况下重新启动新的容器。Deployment 是管理 Pod 创建和扩展的推荐方法。
130+
Kubernetes [*Pod*](zh/docs/concepts/workloads/pods/pod/) 是由一个或多个为了管理和联网而绑定在一起的容器构成的组。本教程中的 Pod 只有一个容器。Kubernetes [*Deployment*](zh/docs/concepts/workloads/controllers/deployment/) 检查 Pod 的健康状况,并在 Pod 中的容器终止的情况下重新启动新的容器。Deployment 是管理 Pod 创建和扩展的推荐方法。
131131
132132
<!--
133133
1. Use the `kubectl create` command to create a Deployment that manages a Pod. The
@@ -203,22 +203,22 @@ Pod runs a Container based on the provided Docker image.
203203
```
204204
205205
<!--
206-
{{< note >}}For more information about `kubectl`commands, see the [kubectl overview](/docs/user-guide/kubectl-overview/).{{< /note >}}
206+
{{< note >}}For more information about `kubectl`commands, see the [kubectl overview](zh/docs/user-guide/kubectl-overview/).{{< /note >}}
207207
-->
208-
{{< note >}}有关 kubectl 命令的更多信息,请参阅 [kubectl 概述](/docs/user-guide/kubectl-overview/)。{{< /note >}}
208+
{{< note >}}有关 kubectl 命令的更多信息,请参阅 [kubectl 概述](zh/docs/user-guide/kubectl-overview/)。{{< /note >}}
209209
210210
<!--
211211
## Create a Service
212212
213213
By default, the Pod is only accessible by its internal IP address within the
214214
Kubernetes cluster. To make the `hello-node` Container accessible from outside the
215215
Kubernetes virtual network, you have to expose the Pod as a
216-
Kubernetes [*Service*](/docs/concepts/services-networking/service/).
216+
Kubernetes [*Service*](zh/docs/concepts/services-networking/service/).
217217
-->
218218
219219
## 创建 Service
220220
221-
默认情况下,Pod 只能通过 Kubernetes 集群中的内部 IP 地址访问。要使得 `hello-node` 容器可以从 Kubernetes 虚拟网络的外部访问,您必须将 Pod 暴露为 Kubernetes [*Service*](/docs/concepts/services-networking/service/)。
221+
默认情况下,Pod 只能通过 Kubernetes 集群中的内部 IP 地址访问。要使得 `hello-node` 容器可以从 Kubernetes 虚拟网络的外部访问,您必须将 Pod 暴露为 Kubernetes [*Service*](zh/docs/concepts/services-networking/service/)。
222222
223223
<!--
224224
1. Expose the Pod to the public internet using the `kubectl expose` command:
@@ -447,12 +447,12 @@ minikube delete
447447
{{% capture whatsnext %}}
448448
449449
<!--
450-
* Learn more about [Deployment objects](/docs/concepts/workloads/controllers/deployment/).
451-
* Learn more about [Deploying applications](/docs/tasks/run-application/run-stateless-application-deployment/).
452-
* Learn more about [Service objects](/docs/concepts/services-networking/service/).
450+
* Learn more about [Deployment objects](zh/docs/concepts/workloads/controllers/deployment/).
451+
* Learn more about [Deploying applications](zh/docs/tasks/run-application/run-stateless-application-deployment/).
452+
* Learn more about [Service objects](zh/docs/concepts/services-networking/service/).
453453
-->
454-
* 进一步了解 [Deployment 对象](/docs/concepts/workloads/controllers/deployment/)。
455-
* 学习更多关于 [部署应用](/docs/tasks/run-application/run-stateless-application-deployment/)。
456-
* 学习更多关于 [Service 对象](/docs/concepts/services-networking/service/)。
454+
* 进一步了解 [Deployment 对象](zh/docs/concepts/workloads/controllers/deployment/)。
455+
* 学习更多关于 [部署应用](zh/docs/tasks/run-application/run-stateless-application-deployment/)。
456+
* 学习更多关于 [Service 对象](zh/docs/concepts/services-networking/service/)。
457457
458458
{{% /capture %}}

0 commit comments

Comments
 (0)