Skip to content

Commit 876a534

Browse files
authored
Merge pull request #47536 from my-git9/pp-9813
[zh-cn] sync controllers/replicaset.md
2 parents 4cc8a8f + 5e92622 commit 876a534

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

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

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -577,15 +577,12 @@ prioritize scaling down pods based on the following general algorithm:
577577
the pod with the lower value will come first.
578578
1. Pods on nodes with more replicas come before pods on nodes with fewer replicas.
579579
1. If the pods' creation times differ, the pod that was created more recently
580-
comes before the older pod (the creation times are bucketed on an integer log scale
581-
when the `LogarithmicScaleDown` [feature gate](/docs/reference/command-line-tools-reference/feature-gates/) is enabled)
580+
comes before the older pod (the creation times are bucketed on an integer log scale).
582581
-->
583582
1. 首先选择剔除悬决(Pending,且不可调度)的各个 Pod
584583
2. 如果设置了 `controller.kubernetes.io/pod-deletion-cost` 注解,则注解值较小的优先被裁减掉
585584
3. 所处节点上副本个数较多的 Pod 优先于所处节点上副本较少者
586-
4. 如果 Pod 的创建时间不同,最近创建的 Pod 优先于早前创建的 Pod 被裁减。
587-
(当 `LogarithmicScaleDown` 这一[特性门控](/zh-cn/docs/reference/command-line-tools-reference/feature-gates/)
588-
被启用时,创建时间是按整数幂级来分组的)。
585+
4. 如果 Pod 的创建时间不同,最近创建的 Pod 优先于早前创建的 Pod 被裁减(创建时间是按整数幂级来分组的)。
589586

590587
<!--
591588
If all of the above match, then selection is random.

0 commit comments

Comments
 (0)