@@ -640,12 +640,23 @@ Kubelet 管理以下 PodCondition:
640
640
have completed successfully.
641
641
* `Ready`: the Pod is able to serve requests and should be added to the load
642
642
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).
643
649
-->
644
650
* `PodScheduled`:Pod 已经被调度到某节点;
645
651
* `PodReadyToStartContainers`:Pod 沙箱被成功创建并且配置了网络(Beta 特性,[默认](#pod-has-network)启用);
646
652
* `ContainersReady`:Pod 中所有容器都已就绪;
647
653
* `Initialized`:所有的 [Init 容器](/zh-cn/docs/concepts/workloads/pods/init-containers/)都已成功完成;
648
654
* `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)。
649
660
650
661
1074
1086
请注意,如果你只是想在 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)。
1077
1090
{{< /note >}}
1078
1091
1079
1092
You can’t perform that action at this time.