@@ -173,14 +173,6 @@ in your pod spec can also cause voluntary (and involuntary) disruptions.
173
173
[ 使用 PriorityClasses] ( /zh-cn/docs/concepts/scheduling-eviction/pod-priority-preemption/ )
174
174
也会产生自愿(和非自愿)的干扰。
175
175
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
-
184
176
<!--
185
177
## Pod disruption budgets
186
178
@@ -275,8 +267,7 @@ during application updates is configured in the spec for the specific workload r
275
267
276
268
<!--
277
269
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
280
271
`terminationGracePeriodSeconds` setting in its [PodSpec](/docs/reference/generated/kubernetes-api/{{< param "version" >}}/#podspec-v1-core).
281
272
-->
282
273
当使用驱逐 API 驱逐 Pod 时,Pod 会被体面地
@@ -286,6 +277,7 @@ hornoring the
286
277
287
278
<!--
288
279
## PodDisruptionBudget example {#pdb-example}
280
+
289
281
Consider a cluster with 3 nodes, `node-1` through `node-3`.
290
282
The cluster is running several applications. One of them has 3 replicas initially called
291
283
`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:
435
427
- 集群的资源能力
436
428
437
429
<!--
438
- ## Pod disruption conditions {#pod-disruption-conditions}
430
+ ## Pod disruption conditions {#pod-disruption-conditions}
439
431
-->
440
432
## Pod 干扰状况 {#pod-disruption-conditions}
441
433
442
434
{{< feature-state for_k8s_version="v1.25" state="alpha" >}}
443
435
444
436
{{< note >}}
445
437
<!--
446
- In order to use this behavior, you must enable the `PodDisruptionsCondition `
438
+ In order to use this behavior, you must enable the `PodDisruptionCondition `
447
439
[feature gate](/docs/reference/command-line-tools-reference/feature-gates/)
448
- in your cluster.
440
+ in your cluster.
449
441
-->
450
- 要使用此行为,你必须在集群中启用 ` PodDisruptionsCondition `
442
+ 要使用此行为,你必须在集群中启用 ` PodDisruptionCondition `
451
443
[ 特性门控] ( /zh-cn/docs/reference/command-line-tools-reference/feature-gates/ ) 。
452
444
{{< /note >}}
453
445
454
446
<!--
455
447
When enabled, a dedicated Pod `DisruptionTarget` [condition](/docs/concepts/workloads/pods/pod-lifecycle/#pod-conditions) is added to indicate
456
448
that the Pod is about to be deleted due to a {{<glossary_tooltip term_id="disruption" text="disruption">}}.
457
449
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:
459
451
-->
460
452
启用后,会给 Pod 添加一个 ` DisruptionTarget `
461
453
[ 状况] ( /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
586
578
587
579
<!--
588
580
* Follow steps to protect your application by [configuring a Pod Disruption Budget](/docs/tasks/run-application/configure-pdb/).
581
+
589
582
* Learn more about [draining nodes](/docs/tasks/administer-cluster/safely-drain-node/)
583
+
590
584
* Learn about [updating a deployment](/docs/concepts/workloads/controllers/deployment/#updating-a-deployment)
591
585
including steps to maintain its availability during the rollout.
592
586
-->
593
587
* 参考[ 配置 Pod 干扰预算] ( /zh-cn/docs/tasks/run-application/configure-pdb/ ) 中的方法来保护你的应用。
588
+
594
589
* 进一步了解[ 排空节点] ( /zh-cn/docs/tasks/administer-cluster/safely-drain-node/ ) 的信息。
590
+
595
591
* 了解[ 更新 Deployment] ( /zh-cn/docs/concepts/workloads/controllers/deployment/#updating-a-deployment )
596
592
的过程,包括如何在其进程中维持应用的可用性
593
+
0 commit comments