Skip to content

Commit 9216674

Browse files
authored
Merge pull request #50891 from Eason1118/patch-2
[zh-cn] sync pod-lifecycle.md and resize-container-resources.md
2 parents b89d3f8 + a838239 commit 9216674

3 files changed

Lines changed: 352 additions & 272 deletions

File tree

content/zh-cn/docs/concepts/workloads/pods/pod-lifecycle.md

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -640,12 +640,23 @@ Kubelet 管理以下 PodCondition:
640640
have completed successfully.
641641
* `Ready`: the Pod is able to serve requests and should be added to the load
642642
balancing pools of all matching Services.
643+
* `DisruptionTarget`: the pod is about to be terminated due to a disruption
644+
(such as preemption, eviction or garbage-collection).
645+
* `PodResizePending`: a pod resize was requested but cannot be applied.
646+
See [Pod resize status](/docs/tasks/configure-pod-container/resize-container-resources#pod-resize-status).
647+
* `PodResizeInProgress`: the pod is in the process of resizing.
648+
See [Pod resize status](/docs/tasks/configure-pod-container/resize-container-resources#pod-resize-status).
643649
-->
644650
* `PodScheduled`:Pod 已经被调度到某节点;
645651
* `PodReadyToStartContainers`:Pod 沙箱被成功创建并且配置了网络(Beta 特性,[默认](#pod-has-network)启用);
646652
* `ContainersReady`:Pod 中所有容器都已就绪;
647653
* `Initialized`:所有的 [Init 容器](/zh-cn/docs/concepts/workloads/pods/init-containers/)都已成功完成;
648654
* `Ready`:Pod 可以为请求提供服务,并且应该被添加到对应服务的负载均衡池中。
655+
* `DisruptionTarget`:由于干扰(例如抢占、驱逐或垃圾回收),Pod 即将被终止。
656+
* `PodResizePending`:已请求对 Pod 进行调整大小,但尚无法应用。
657+
详见 [Pod 调整大小状态](/zh-cn/docs/tasks/configure-pod-container/resize-container-resources#pod-resize-status)。
658+
* `PodResizeInProgress`:Pod 正在调整大小中。
659+
详见 [Pod 调整大小状态](/zh-cn/docs/tasks/configure-pod-container/resize-container-resources#pod-resize-status)。
649660

650661
<!--
651662
Field name | Description
@@ -1066,14 +1077,16 @@ processing its startup data, you might prefer a readiness probe.
10661077
{{< note >}}
10671078
<!--
10681079
If you want to be able to drain requests when the Pod is deleted, you do not
1069-
necessarily need a readiness probe; on deletion, the Pod automatically puts itself
1070-
into an unready state regardless of whether the readiness probe exists.
1071-
The Pod remains in the unready state while it waits for the containers in the Pod
1072-
to stop.
1080+
necessarily need a readiness probe; when the Pod is deleted, the corresponding endpoint
1081+
in the `EndppointSlice` will update its [conditions](/docs/concepts/services-networking/endpoint-slices/#conditions):
1082+
the endpoint `ready` condition will be set to `false`, so load balancers
1083+
will not use the Pod for regular traffic. See [Pod termination](#pod-termination)
1084+
for more information about how the kubelet handles Pod deletion.
10731085
-->
10741086
请注意,如果你只是想在 Pod 被删除时能够排空请求,则不一定需要使用就绪态探针;
1075-
在删除 Pod 时,Pod 会自动将自身置于未就绪状态,无论就绪态探针是否存在。
1076-
等待 Pod 中的容器停止期间,Pod 会一直处于未就绪状态。
1087+
当 Pod 被删除时,`EndpointSlice` 中对应的端点会更新其[状况](/zh-cn/docs/concepts/services-networking/endpoint-slices/#conditions):
1088+
该端点的 `ready` 状况将被设置为 `false`,因此负载均衡器不会再将该 Pod 用于常规流量。
1089+
关于 kubelet 如何处理 Pod 删除的更多信息,请参见 [Pod 终止](#pod-termination)。
10771090
{{< /note >}}
10781091

10791092
<!--

0 commit comments

Comments
 (0)