@@ -55,6 +55,7 @@ on general patterns for running stateful applications in Kubernetes.
55
55
[ConfigMaps](/docs/tasks/configure-pod-container/configure-pod-configmap/).
56
56
* Some familiarity with MySQL helps, but this tutorial aims to present
57
57
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.
58
59
-->
59
60
* 本教程假定你熟悉
60
61
[ PersistentVolumes] ( /zh/docs/concepts/storage/persistent-volumes/ )
@@ -63,6 +64,7 @@ on general patterns for running stateful applications in Kubernetes.
63
64
[ 服务] ( /zh/docs/concepts/services-networking/service/ ) 与
64
65
[ ConfigMap] ( /zh/docs/tasks/configure-pod-container/configure-pod-configmap/ ) .
65
66
* 熟悉 MySQL 会有所帮助,但是本教程旨在介绍对其他系统应该有用的常规模式。
67
+ * 您正在使用默认命名空间或不包含任何冲突对象的另一个命名空间。
66
68
67
69
## {{% heading "objectives" %}}
68
70
@@ -280,21 +282,20 @@ properties.
280
282
The script in the `init-mysql` container also applies either `primary.cnf` or
281
283
`replica.cnf` from the ConfigMap by copying the contents into `conf.d`.
282
284
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
284
286
else to be replicas.
285
287
286
288
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),
288
290
this ensures the primary MySQL server is Ready before creating replicas, so they can begin
289
291
replicating.
290
292
-->
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 ` 指定为主节点,而将其他所有节点指定为副本节点。
295
296
296
297
与 StatefulSet 控制器的
297
- [ 部署顺序保证] ( /zh/docs/concepts/workloads/controllers/statefulset/#deployment-and-scaling-guarantees/ )
298
+ [ 部署顺序保证] ( /zh/docs/concepts/workloads/controllers/statefulset/#deployment-and-scaling-guarantees )
298
299
相结合,
299
300
可以确保 MySQL 主服务器在创建副本服务器之前已准备就绪,以便它们可以开始复制。
300
301
0 commit comments