Skip to content

Commit 9260004

Browse files
authored
Merge pull request #33731 from my-git9/mygit22
adjust format in content/zh/docs/tutorials/stateful-application
2 parents 6eaf472 + e9cd9ad commit 9260004

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed

content/zh/docs/tutorials/stateful-application/basic-stateful-set.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ In the second terminal, use
129129
Headless Service and StatefulSet defined in `web.yaml`.
130130
-->
131131

132-
在另一个终端中,使用 [`kubectl apply`](/zh/docs/reference/generated/kubectl/kubectl-commands/#apply)来创建定义在 `web.yaml` 中的 Headless Service 和 StatefulSet。
132+
在另一个终端中,使用 [`kubectl apply`](/zh/docs/reference/generated/kubectl/kubectl-commands/#apply) 来创建定义在 `web.yaml` 中的 Headless Service 和 StatefulSet。
133133

134134
```shell
135135
kubectl apply -f web.yaml
@@ -1691,7 +1691,7 @@ StatefulSet 启动了两个新的 Pod,而且在启动第二个之前并没有
16911691

16921692
## {{% heading "cleanup" %}}
16931693

1694-
您应该打开两个终端,准备在清理过程中运行 `kubectl` 命令。
1694+
你应该打开两个终端,准备在清理过程中运行 `kubectl` 命令。
16951695

16961696
```shell
16971697
kubectl delete sts web

content/zh/docs/tutorials/stateful-application/cassandra.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ By using environment variables you can change values that are inserted into `cas
423423
并且包含 OpenJDK 8。
424424

425425
该映像包括来自 Apache Debian 存储库的标准 Cassandra 安装。
426-
通过使用环境变量,您可以更改插入到 `cassandra.yaml` 中的值。
426+
通过使用环境变量,你可以更改插入到 `cassandra.yaml` 中的值。
427427

428428
| 环境变量 | 默认值 |
429429
| ------------------------ |:---------------: |

content/zh/docs/tutorials/stateful-application/mysql-wordpress-persistent-volume.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ This tutorial shows you how to deploy a WordPress site and a MySQL database usin
4848
The files provided in this tutorial are using GA Deployment APIs and are specific to kubernetes version 1.9 and later. If you wish to use this tutorial with an earlier version of Kubernetes, please update the API version appropriately, or reference earlier versions of this tutorial.
4949
-->
5050

51-
本教程中提供的文件使用 GA Deployment API,并且特定于 kubernetes 1.9 或更高版本。如果您希望将本教程与 Kubernetes 的早期版本一起使用,请相应地更新 API 版本,或参考本教程的早期版本。
51+
本教程中提供的文件使用 GA Deployment API,并且特定于 kubernetes 1.9 或更高版本。如果你希望将本教程与 Kubernetes 的早期版本一起使用,请相应地更新 API 版本,或参考本教程的早期版本。
5252
{{< /note >}}
5353

5454

@@ -126,7 +126,7 @@ MySQL 和 Wordpress 都需要一个 PersistentVolume 来存储数据。他们的
126126
In local clusters, the default StorageClass uses the `hostPath` provisioner. `hostPath` volumes are only suitable for development and testing. With `hostPath` volumes, your data lives in `/tmp` on the node the Pod is scheduled onto and does not move between nodes. If a Pod dies and gets scheduled to another node in the cluster, or the node is rebooted, the data is lost.
127127
-->
128128

129-
在本地群集中,默认的 StorageClass 使用`hostPath`供应器。 `hostPath`卷仅适用于开发和测试。使用 `hostPath` 卷,您的数据位于 Pod 调度到的节点上的`/tmp`中,并且不会在节点之间移动。如果 Pod 死亡并被调度到群集中的另一个节点,或者该节点重新启动,则数据将丢失。
129+
在本地群集中,默认的 StorageClass 使用`hostPath`供应器。 `hostPath`卷仅适用于开发和测试。使用 `hostPath` 卷,你的数据位于 Pod 调度到的节点上的`/tmp`中,并且不会在节点之间移动。如果 Pod 死亡并被调度到群集中的另一个节点,或者该节点重新启动,则数据将丢失。
130130
{{< /warning >}}
131131

132132
{{< note >}}
@@ -161,9 +161,9 @@ A [Secret](/docs/concepts/configuration/secret/) is an object that stores a piec
161161
Add a Secret generator in `kustomization.yaml` from the following command. You will need to replace `YOUR_PASSWORD` with the password you want to use.
162162
-->
163163

164-
A [Secret](/zh/docs/concepts/configuration/secret/) 是存储诸如密码或密钥之类的敏感数据的对象。从 1.14 开始,`kubectl`支持使用 kustomization 文件管理 Kubernetes 对象。您可以通过`kustomization.yaml`中的生成器创建一个 Secret。
164+
A [Secret](/zh/docs/concepts/configuration/secret/) 是存储诸如密码或密钥之类的敏感数据的对象。从 1.14 开始,`kubectl`支持使用 kustomization 文件管理 Kubernetes 对象。你可以通过`kustomization.yaml`中的生成器创建一个 Secret。
165165

166-
通过以下命令在`kustomization.yaml`中添加一个 Secret 生成器。您需要用您要使用的密码替换`YOUR_PASSWORD`
166+
通过以下命令在`kustomization.yaml`中添加一个 Secret 生成器。你需要用你要使用的密码替换`YOUR_PASSWORD`
167167

168168
```shell
169169
cat <<EOF >./kustomization.yaml
@@ -344,12 +344,12 @@ Now you can verify that all objects exist.
344344
-->
345345
346346
347-
`kustomization.yaml`包含用于部署 WordPress 网站的所有资源以及 MySQL 数据库。您可以通过以下方式应用目录
347+
`kustomization.yaml`包含用于部署 WordPress 网站的所有资源以及 MySQL 数据库。你可以通过以下方式应用目录
348348
```shell
349349
kubectl apply -k ./
350350
```
351351
352-
现在,您可以验证所有对象是否存在
352+
现在,你可以验证所有对象是否存在
353353
354354
1. 通过运行以下命令验证 Secret 是否存在:
355355
@@ -428,9 +428,9 @@ kubectl apply -k ./
428428
http://1.2.3.4:32406
429429
```
430430
431-
6. 复制 IP 地址,然后将页面加载到浏览器中来查看您的站点
431+
6. 复制 IP 地址,然后将页面加载到浏览器中来查看你的站点
432432
433-
您应该看到类似于以下屏幕截图的 WordPress 设置页面。
433+
你应该看到类似于以下屏幕截图的 WordPress 设置页面。
434434
435435
![wordpress-init](https://raw.githubusercontent.com/kubernetes/examples/master/mysql-wordpress-pd/WordPress.png)
436436
@@ -440,7 +440,7 @@ kubectl apply -k ./
440440
<!--
441441
Do not leave your WordPress installation on this page. If another user finds it, they can set up a website on your instance and use it to serve malicious content. <br/><br/>Either install WordPress by creating a username and password or delete your instance.
442442
-->
443-
不要在此页面上保留 WordPress 安装。如果其他用户找到了它,他们可以在您的实例上建立一个网站并使用它来提供恶意内容。<br/><br/>通过创建用户名和密码来安装 WordPress 或删除您的实例
443+
不要在此页面上保留 WordPress 安装。如果其他用户找到了它,他们可以在你的实例上建立一个网站并使用它来提供恶意内容。<br/><br/>通过创建用户名和密码来安装 WordPress 或删除你的实例
444444
445445
{{< /warning >}}
446446
@@ -454,7 +454,7 @@ Do not leave your WordPress installation on this page. If another user finds it,
454454
```
455455
-->
456456
457-
1. 运行一下命令删除您的 Secret,Deployments,Services and PersistentVolumeClaims:
457+
1. 运行一下命令删除你的 Secret,Deployments,Services and PersistentVolumeClaims:
458458
459459
```shell
460460
kubectl delete -k ./

0 commit comments

Comments
 (0)