1、Pod phase
value for pod phase
Pending | 集群已接收请求,未调度到node节点。node资源,硬盘pressure IO cpu memory |
Running | 1/1 running 已经ready,程序已要以pod内正常运行 |
Succeeded | Pod terminated from node |
ContainerStatusUnknown | 无法获知pod状态,失联状态。 |
Failed | All containers in the Pod have terminated, and at least one container has terminated in failure. That is, the container either exited with non-zero status or was terminated by the system |
CrashLoopBackOff | 挂掉 |
Pod ContainerStatusUnknown 状态
CrashLoopBackOff状态
Pending状态
2、Container States
kubernetes 会追踪pod 内的container状态
waitting | ,pulling the container image from a container image registry, or applying Secret data |
running | container entered the running state |
terminated | A container in the |
3、pod conditions
pod 有很多的状态,kubelet来控制这些 pod conditions
PodScheduled | the Pod has been scheduled to a node //已被调度到某个node节点 |
podhashnetwork | the Pod sandbox has been successfully created and networking configured //网络OK |
containersReady | all containers in the Pod are ready //pod 中的containers ready状态 |
Initialized | all init containers have completed successfully. // init containers 初始化已完成 |
ready | the Pod is able to serve requests and should be added to the load balancing pools of all matching Services //ready for requests |