Skip to content

Commit 720a2b7

Browse files
authored
Merge pull request #37549 from windsonsea/operat
[zh] sync statefulset.md
2 parents 382f4a3 + d494a20 commit 720a2b7

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

content/zh-cn/docs/concepts/workloads/controllers/statefulset.md

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,8 @@ The name of a StatefulSet object must be a valid
178178
* `volumeClaimTemplates` 将通过 PersistentVolume 制备程序所准备的
179179
[PersistentVolumes](/zh-cn/docs/concepts/storage/persistent-volumes/) 来提供稳定的存储。
180180

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)规范。
182183

183184
<!--
184185
### Pod Selector
@@ -229,7 +230,7 @@ a Pod is considered ready, see [Container Probes](/docs/concepts/workloads/pods/
229230
<!--
230231
## Pod Identity
231232

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
233234
stable network identity, and stable storage. The identity sticks to the Pod,
234235
regardless of which node it's (re)scheduled on.
235236
-->
@@ -324,11 +325,11 @@ Cluster Domain | Service (ns/name) | StatefulSet (ns/name) | StatefulSet Domain
324325
cluster.local | foo/nginx | foo/web | nginx.foo.svc.cluster.local | web-{0..N-1}.nginx.foo.svc.cluster.local | web-{0..N-1} |
325326
kube.local | foo/nginx | foo/web | nginx.foo.svc.kube.local | web-{0..N-1}.nginx.foo.svc.kube.local | web-{0..N-1} |
326327

328+
{{< note >}}
327329
<!--
328330
Cluster Domain will be set to `cluster.local` unless
329331
[otherwise configured](/docs/concepts/services-networking/dns-pod-service/#how-it-works).
330332
-->
331-
{{< note >}}
332333
集群域会被设置为 `cluster.local`,除非有[其他配置](/zh-cn/docs/concepts/services-networking/dns-pod-service/)。
333334
{{< /note >}}
334335

@@ -358,14 +359,14 @@ PersistentVolume 并不会被删除。要删除它必须通过手动方式来完
358359
<!--
359360
### Pod Name Label
360361

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,
362363
it adds a label, `statefulset.kubernetes.io/pod-name`, that is set to the name of
363364
the Pod. This label allows you to attach a Service to a specific Pod in
364365
the StatefulSet.
365366
-->
366367
### Pod 名称标签 {#pod-name-label}
367368

368-
当 StatefulSet {{< glossary_tooltip term_id="controller" >}} 创建 Pod 时,
369+
当 StatefulSet {{<glossary_tooltip text="控制器" term_id="controller">}}创建 Pod 时,
369370
它会添加一个标签 `statefulset.kubernetes.io/pod-name`,该标签值设置为 Pod 名称。
370371
这个标签允许你给 StatefulSet 中的特定 Pod 绑定一个 Service。
371372

@@ -454,7 +455,7 @@ Pod. This option only affects the behavior for scaling operations. Updates are n
454455
#### 并行 Pod 管理 {#parallel-pod-management}
455456

456457
`Parallel` Pod 管理让 StatefulSet 控制器并行的启动或终止所有的 Pod,
457-
启动或者终止其他 Pod 前,无需等待 Pod 进入 Running 和 ready 或者完全停止状态。
458+
启动或者终止其他 Pod 前,无需等待 Pod 进入 Running 和 Ready 或者完全停止状态。
458459
这个选项只会影响扩缩操作的行为,更新则不会被影响。
459460

460461
<!--
@@ -477,7 +478,7 @@ StatefulSet 的 `.spec.updateStrategy` 字段让你可以配置和禁用掉自
477478
create new Pods that reflect modifications made to a StatefulSet's `.spec.template`.
478479

479480
`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
481482
StatefulSet. This is the default update strategy.
482483
-->
483484
`OnDelete`
@@ -738,7 +739,7 @@ owner reference has been updated appropriate to the policy. If a condemned Pod i
738739
force-deleted while the controller is down, the owner reference may or may not have been
739740
set up, depending on when the controller crashed. It may take several reconcile loops to
740741
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,
742743
which will verify owner references before terminating Pods. If that is not possible, the
743744
operator should verify the owner references on PVCs to ensure the expected objects are
744745
deleted when Pods are force-deleted.
@@ -810,3 +811,4 @@ the `.spec.replicas` field automatically.
810811
* `StatefulSet` 是 Kubernetes REST API 中的顶级资源。阅读 {{< api-reference page="workload-resources/stateful-set-v1" >}}
811812
对象定义理解关于该资源的 API。
812813
* 阅读 [Pod 干扰预算(Disruption Budget)](/zh-cn/docs/concepts/workloads/pods/disruptions/),了解如何在干扰下运行高度可用的应用。
814+

0 commit comments

Comments
 (0)