Skip to content

Commit 67da6a3

Browse files
authored
Merge pull request #27184 from ydFu/update-run-replicated-stateful-application
[zh] Sync tasks pages for run-replicated-stateful-application.md
2 parents 5685768 + 11365d4 commit 67da6a3

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

content/zh/docs/tasks/run-application/run-replicated-stateful-application.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ on general patterns for running stateful applications in Kubernetes.
5555
[ConfigMaps](/docs/tasks/configure-pod-container/configure-pod-configmap/).
5656
* Some familiarity with MySQL helps, but this tutorial aims to present
5757
general patterns that should be useful for other systems.
58+
* You are using the default namespace or another namespace that does not contain any conflicting objects.
5859
-->
5960
* 本教程假定你熟悉
6061
[PersistentVolumes](/zh/docs/concepts/storage/persistent-volumes/)
@@ -63,6 +64,7 @@ on general patterns for running stateful applications in Kubernetes.
6364
[服务](/zh/docs/concepts/services-networking/service/)
6465
[ConfigMap](/zh/docs/tasks/configure-pod-container/configure-pod-configmap/).
6566
* 熟悉 MySQL 会有所帮助,但是本教程旨在介绍对其他系统应该有用的常规模式。
67+
* 您正在使用默认命名空间或不包含任何冲突对象的另一个命名空间。
6668

6769
## {{% heading "objectives" %}}
6870

@@ -280,21 +282,20 @@ properties.
280282
The script in the `init-mysql` container also applies either `primary.cnf` or
281283
`replica.cnf` from the ConfigMap by copying the contents into `conf.d`.
282284
Because the example topology consists of a single primary MySQL server and any number of
283-
replicas, the script simply assigns ordinal `0` to be the primary server, and everyone
285+
replicas, the script assigns ordinal `0` to be the primary server, and everyone
284286
else to be replicas.
285287
286288
Combined with the StatefulSet controller's
287-
[deployment order guarantee](/docs/concepts/workloads/controllers/statefulset/#deployment-and-scaling-guarantees/),
289+
[deployment order guarantee](/docs/concepts/workloads/controllers/statefulset/#deployment-and-scaling-guarantees),
288290
this ensures the primary MySQL server is Ready before creating replicas, so they can begin
289291
replicating.
290292
-->
291-
通过将内容复制到 conf.d 中,`init-mysql` 容器中的脚本也可以应用 ConfigMap 中的
292-
`primary.cnf``replica.cnf`
293-
由于示例部署结构由单个 MySQL 主节点和任意数量的副本节点组成,因此脚本仅将序数
294-
`0` 指定为主节点,而将其他所有节点指定为副本节点。
293+
通过将内容复制到 conf.d 中,`init-mysql` 容器中的脚本也可以应用 ConfigMap 中的 `primary.cnf``replica.cnf`
294+
由于示例部署结构由单个 MySQL 主节点和任意数量的副本节点组成,
295+
因此脚本仅将序数 `0` 指定为主节点,而将其他所有节点指定为副本节点。
295296

296297
与 StatefulSet 控制器的
297-
[部署顺序保证](/zh/docs/concepts/workloads/controllers/statefulset/#deployment-and-scaling-guarantees/)
298+
[部署顺序保证](/zh/docs/concepts/workloads/controllers/statefulset/#deployment-and-scaling-guarantees)
298299
相结合,
299300
可以确保 MySQL 主服务器在创建副本服务器之前已准备就绪,以便它们可以开始复制。
300301

0 commit comments

Comments
 (0)