Skip to content

Commit a838239

Browse files
committed
[zh-cn] sync pod-lifecycle.md and resize-container-resources.md
1 parent 66ca2de commit a838239

File tree

3 files changed

+352
-272
lines changed

3 files changed

+352
-272
lines changed

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
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
commit comments
Comments
 (0)