Skip to content

Commit b7aa8af

Browse files
committed
[zh-cn] sync replicaset.md and deployment.md
1 parent 0825aae commit b7aa8af

File tree

2 files changed

+53
-0
lines changed

2 files changed

+53
-0
lines changed

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

+26
Original file line numberDiff line numberDiff line change
@@ -2321,6 +2321,32 @@ a Pod is considered ready, see [Container Probes](/docs/concepts/workloads/pods/
23212321
要了解何时 Pod 被视为就绪,
23222322
可参考[容器探针](/zh-cn/docs/concepts/workloads/pods/pod-lifecycle/#container-probes)。
23232323

2324+
<!--
2325+
### Terminating Pods
2326+
2327+
{{< feature-state feature_gate_name="DeploymentReplicaSetTerminatingReplicas" >}}
2328+
2329+
You can enable this feature it by setting the `DeploymentReplicaSetTerminatingReplicas`
2330+
[feature gate](/docs/reference/command-line-tools-reference/feature-gates/)
2331+
on the [API server](/docs/reference/command-line-tools-reference/kube-apiserver/)
2332+
and on the [kube-controller-manager](/docs/reference/command-line-tools-reference/kube-controller-manager/)
2333+
Pods that become terminating due to deletion or scale down may take a long time to terminate, and may consume
2334+
additional resources during that period. As a result, the total number of all pods can temporarily exceed
2335+
`.spec.replicas`. Terminating pods can be tracked using the `.status.terminatingReplicas` field of the Deployment.
2336+
-->
2337+
### 终止 Pod {#terminating-pods}
2338+
2339+
{{< feature-state feature_gate_name="DeploymentReplicaSetTerminatingReplicas" >}}
2340+
2341+
你可以通过在 [API 服务器](/zh-cn/docs/reference/command-line-tools-reference/kube-apiserver/)
2342+
和 [kube-controller-manager](/zh-cn/docs/reference/command-line-tools-reference/kube-controller-manager/)
2343+
上启用 `DeploymentReplicaSetTerminatingReplicas`
2344+
[特性门控](/zh-cn/docs/reference/command-line-tools-reference/feature-gates/)来开启此功能。
2345+
2346+
由于删除或缩减副本导致的终止中的 Pod 可能需要较长时间才能完成终止,且在此期间可能会消耗额外资源。
2347+
因此,所有 Pod 的总数可能会暂时超过 `.spec.replicas` 指定的数量。
2348+
可以通过 Deployment 的 `.status.terminatingReplicas` 字段来跟踪终止中的 Pod。
2349+
23242350
<!--
23252351
### Revision History Limit
23262352

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

+27
Original file line numberDiff line numberDiff line change
@@ -539,6 +539,33 @@ ReplicaSets do not support a rolling update directly.
539539
[Deployment](/zh-cn/docs/concepts/workloads/controllers/deployment/#creating-a-deployment)
540540
资源,因为 ReplicaSet 并不直接支持滚动更新。
541541

542+
<!--
543+
### Terminating Pods
544+
545+
{{< feature-state feature_gate_name="DeploymentReplicaSetTerminatingReplicas" >}}
546+
547+
You can enable this feature it by setting the `DeploymentReplicaSetTerminatingReplicas`
548+
[feature gate](/docs/reference/command-line-tools-reference/feature-gates/)
549+
on the [API server](/docs/reference/command-line-tools-reference/kube-apiserver/)
550+
and on the [kube-controller-manager](/docs/reference/command-line-tools-reference/kube-controller-manager/)
551+
552+
Pods that become terminating due to deletion or scale down may take a long time to terminate, and may consume
553+
additional resources during that period. As a result, the total number of all pods can temporarily exceed
554+
`.spec.replicas`. Terminating pods can be tracked using the `.status.terminatingReplicas` field of the ReplicaSet.
555+
-->
556+
### 终止中的 Pod {#terminating-pods}
557+
558+
{{< feature-state feature_gate_name="DeploymentReplicaSetTerminatingReplicas" >}}
559+
560+
你可以通过在 [API 服务器](/zh-cn/docs/reference/command-line-tools-reference/kube-apiserver/)
561+
和 [kube-controller-manager](/zh-cn/docs/reference/command-line-tools-reference/kube-controller-manager/)
562+
上启用 `DeploymentReplicaSetTerminatingReplicas`
563+
[特性门控](/zh-cn/docs/reference/command-line-tools-reference/feature-gates/)来开启此功能。
564+
565+
由于删除或缩减副本导致的终止中的 Pod 可能需要较长时间才能完成终止,且在此期间可能会消耗额外资源。
566+
因此,所有 Pod 的总数可能会暂时超过 `.spec.replicas` 指定的数量。
567+
可以通过 ReplicaSet 的 `.status.terminatingReplicas` 字段来跟踪终止中的 Pod。
568+
542569
<!--
543570
### Isolating Pods from a ReplicaSet
544571

0 commit comments

Comments
 (0)