Skip to content

Commit c246251

Browse files
authored
Merge pull request #37236 from kinzhi/kinzhi211
[zh-cn]Update disruptions.md
2 parents b84c6b9 + b8052a3 commit c246251

File tree

1 file changed

+12
-15
lines changed

1 file changed

+12
-15
lines changed

content/zh-cn/docs/concepts/workloads/pods/disruptions.md

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -173,14 +173,6 @@ in your pod spec can also cause voluntary (and involuntary) disruptions.
173173
[使用 PriorityClasses](/zh-cn/docs/concepts/scheduling-eviction/pod-priority-preemption/)
174174
也会产生自愿(和非自愿)的干扰。
175175

176-
<!--
177-
Kubernetes offers features to help run highly available applications at the same
178-
time as frequent voluntary disruptions. We call this set of features
179-
*Disruption Budgets*.
180-
-->
181-
Kubernetes 提供特性来满足在出现频繁自愿干扰的同时运行高可用的应用。我们称这些特性为
182-
**干扰预算(Disruption Budget)**
183-
184176
<!--
185177
## Pod disruption budgets
186178
@@ -275,8 +267,7 @@ during application updates is configured in the spec for the specific workload r
275267

276268
<!--
277269
When a pod is evicted using the eviction API, it is gracefully
278-
[terminated](/docs/concepts/workloads/pods/pod-lifecycle/#pod-termination),
279-
hornoring the
270+
[terminated](/docs/concepts/workloads/pods/pod-lifecycle/#pod-termination), honoring the
280271
`terminationGracePeriodSeconds` setting in its [PodSpec](/docs/reference/generated/kubernetes-api/{{< param "version" >}}/#podspec-v1-core).
281272
-->
282273
当使用驱逐 API 驱逐 Pod 时,Pod 会被体面地
@@ -286,6 +277,7 @@ hornoring the
286277

287278
<!--
288279
## PodDisruptionBudget example {#pdb-example}
280+
289281
Consider a cluster with 3 nodes, `node-1` through `node-3`.
290282
The cluster is running several applications. One of them has 3 replicas initially called
291283
`pod-a`, `pod-b`, and `pod-c`. Another, unrelated pod without a PDB, called `pod-x`, is also shown.
@@ -435,27 +427,27 @@ can happen, according to:
435427
- 集群的资源能力
436428

437429
<!--
438-
## Pod disruption conditions {#pod-disruption-conditions}
430+
## Pod disruption conditions {#pod-disruption-conditions}
439431
-->
440432
## Pod 干扰状况 {#pod-disruption-conditions}
441433

442434
{{< feature-state for_k8s_version="v1.25" state="alpha" >}}
443435

444436
{{< note >}}
445437
<!--
446-
In order to use this behavior, you must enable the `PodDisruptionsCondition`
438+
In order to use this behavior, you must enable the `PodDisruptionCondition`
447439
[feature gate](/docs/reference/command-line-tools-reference/feature-gates/)
448-
in your cluster.
440+
in your cluster.
449441
-->
450-
要使用此行为,你必须在集群中启用 `PodDisruptionsCondition`
442+
要使用此行为,你必须在集群中启用 `PodDisruptionCondition`
451443
[特性门控](/zh-cn/docs/reference/command-line-tools-reference/feature-gates/)
452444
{{< /note >}}
453445

454446
<!--
455447
When enabled, a dedicated Pod `DisruptionTarget` [condition](/docs/concepts/workloads/pods/pod-lifecycle/#pod-conditions) is added to indicate
456448
that the Pod is about to be deleted due to a {{<glossary_tooltip term_id="disruption" text="disruption">}}.
457449
The `reason` field of the condition additionally
458-
indicates one of the following reasons for the Pod termination:
450+
indicates one of the following reasons for the Pod termination:
459451
-->
460452
启用后,会给 Pod 添加一个 `DisruptionTarget`
461453
[状况](/zh-cn/docs/concepts/workloads/pods/pod-lifecycle/#pod-conditions)
@@ -586,11 +578,16 @@ the nodes in your cluster, such as a node or system software upgrade, here are s
586578

587579
<!--
588580
* Follow steps to protect your application by [configuring a Pod Disruption Budget](/docs/tasks/run-application/configure-pdb/).
581+
589582
* Learn more about [draining nodes](/docs/tasks/administer-cluster/safely-drain-node/)
583+
590584
* Learn about [updating a deployment](/docs/concepts/workloads/controllers/deployment/#updating-a-deployment)
591585
including steps to maintain its availability during the rollout.
592586
-->
593587
* 参考[配置 Pod 干扰预算](/zh-cn/docs/tasks/run-application/configure-pdb/)中的方法来保护你的应用。
588+
594589
* 进一步了解[排空节点](/zh-cn/docs/tasks/administer-cluster/safely-drain-node/)的信息。
590+
595591
* 了解[更新 Deployment](/zh-cn/docs/concepts/workloads/controllers/deployment/#updating-a-deployment)
596592
的过程,包括如何在其进程中维持应用的可用性
593+

0 commit comments

Comments
 (0)