@@ -178,7 +178,8 @@ The name of a StatefulSet object must be a valid
178
178
* `volumeClaimTemplates` 将通过 PersistentVolume 制备程序所准备的
179
179
[PersistentVolumes](/zh-cn/docs/concepts/storage/persistent-volumes/) 来提供稳定的存储。
180
180
181
- StatefulSet 的命名需要遵循 [DNS 子域名](/zh-cn/docs/concepts/overview/working-with-objects/names#dns-subdomain-names)规范。
181
+ StatefulSet 的命名需要遵循
182
+ [DNS 子域名](/zh-cn/docs/concepts/overview/working-with-objects/names#dns-subdomain-names)规范。
182
183
183
184
<!--
184
185
# ## Pod Selector
@@ -229,7 +230,7 @@ a Pod is considered ready, see [Container Probes](/docs/concepts/workloads/pods/
229
230
<!--
230
231
# # Pod Identity
231
232
232
- StatefulSet Pods have a unique identity that is comprised of an ordinal, a
233
+ StatefulSet Pods have a unique identity that consists of an ordinal, a
233
234
stable network identity, and stable storage. The identity sticks to the Pod,
234
235
regardless of which node it's (re)scheduled on.
235
236
-->
@@ -324,11 +325,11 @@ Cluster Domain | Service (ns/name) | StatefulSet (ns/name) | StatefulSet Domain
324
325
cluster.local | foo/nginx | foo/web | nginx.foo.svc.cluster.local | web-{0..N-1}.nginx.foo.svc.cluster.local | web-{0..N-1} |
325
326
kube.local | foo/nginx | foo/web | nginx.foo.svc.kube.local | web-{0..N-1}.nginx.foo.svc.kube.local | web-{0..N-1} |
326
327
328
+ {{< note >}}
327
329
<!--
328
330
Cluster Domain will be set to `cluster.local` unless
329
331
[otherwise configured](/docs/concepts/services-networking/dns-pod-service/#how-it-works).
330
332
-->
331
- {{< note >}}
332
333
集群域会被设置为 `cluster.local`,除非有[其他配置](/zh-cn/docs/concepts/services-networking/dns-pod-service/)。
333
334
{{< /note >}}
334
335
@@ -358,14 +359,14 @@ PersistentVolume 并不会被删除。要删除它必须通过手动方式来完
358
359
<!--
359
360
# ## Pod Name Label
360
361
361
- When the StatefulSet {{< glossary_tooltip term_id ="controller" >}} creates a Pod,
362
+ When the StatefulSet {{<glossary_tooltip text ="controller" term_id="controller" >}} creates a Pod,
362
363
it adds a label, `statefulset.kubernetes.io/pod-name`, that is set to the name of
363
364
the Pod. This label allows you to attach a Service to a specific Pod in
364
365
the StatefulSet.
365
366
-->
366
367
# ## Pod 名称标签 {#pod-name-label}
367
368
368
- 当 StatefulSet {{< glossary_tooltip term_id="controller" >}} 创建 Pod 时,
369
+ 当 StatefulSet {{<glossary_tooltip text="控制器" term_id="controller">}}创建 Pod 时,
369
370
它会添加一个标签 `statefulset.kubernetes.io/pod-name`,该标签值设置为 Pod 名称。
370
371
这个标签允许你给 StatefulSet 中的特定 Pod 绑定一个 Service。
371
372
@@ -454,7 +455,7 @@ Pod. This option only affects the behavior for scaling operations. Updates are n
454
455
# ### 并行 Pod 管理 {#parallel-pod-management}
455
456
456
457
` Parallel` Pod 管理让 StatefulSet 控制器并行的启动或终止所有的 Pod,
457
- 启动或者终止其他 Pod 前,无需等待 Pod 进入 Running 和 ready 或者完全停止状态。
458
+ 启动或者终止其他 Pod 前,无需等待 Pod 进入 Running 和 Ready 或者完全停止状态。
458
459
这个选项只会影响扩缩操作的行为,更新则不会被影响。
459
460
460
461
<!--
@@ -477,7 +478,7 @@ StatefulSet 的 `.spec.updateStrategy` 字段让你可以配置和禁用掉自
477
478
create new Pods that reflect modifications made to a StatefulSet's `.spec.template`.
478
479
479
480
` RollingUpdate`
480
- : The `RollingUpdate` update strategy implements automated, rolling update for the Pods in a
481
+ : The `RollingUpdate` update strategy implements automated, rolling updates for the Pods in a
481
482
StatefulSet. This is the default update strategy.
482
483
-->
483
484
` OnDelete`
@@ -738,7 +739,7 @@ owner reference has been updated appropriate to the policy. If a condemned Pod i
738
739
force-deleted while the controller is down, the owner reference may or may not have been
739
740
set up, depending on when the controller crashed. It may take several reconcile loops to
740
741
update the owner references, so some condemned Pods may have set up owner references and
741
- other may not. For this reason we recommend waiting for the controller to come back up,
742
+ others may not. For this reason we recommend waiting for the controller to come back up,
742
743
which will verify owner references before terminating Pods. If that is not possible, the
743
744
operator should verify the owner references on PVCs to ensure the expected objects are
744
745
deleted when Pods are force-deleted.
@@ -810,3 +811,4 @@ the `.spec.replicas` field automatically.
810
811
* `StatefulSet` 是 Kubernetes REST API 中的顶级资源。阅读 {{< api-reference page="workload-resources/stateful-set-v1" >}}
811
812
对象定义理解关于该资源的 API。
812
813
* 阅读 [Pod 干扰预算(Disruption Budget)](/zh-cn/docs/concepts/workloads/pods/disruptions/),了解如何在干扰下运行高度可用的应用。
814
+
0 commit comments