首页/云/云与容器速查/Pod Pending 排查清单

Pod Pending 排查清单

Pending 表示还没被调度或还在拉镜像阶段:describe 的 Events 会直接给出原因。按 资源不足 → 污点/亲和 → 卷未就绪 → 配额 的顺序核对,基本一查一个准。

云与容器速查云更新于 2026-10-12

Pending 常见原因

Event 关键词含义处置
Insufficient cpu/memory节点资源不足降 requests / 扩容节点
didn't match node selector节点选择器/亲和无匹配核对标签与亲和条件
taint ... not tolerated污点未被容忍加 toleration 或换节点池
unbound PVC存储未绑定查 PVC/StorageClass
exceeded quota命名空间配额超限调配额或释放资源

排查命令

排查命令
kubectl get pod web-1 -o wide
kubectl describe pod web-1 | tail -25
kubectl get nodes
kubectl describe node node-1 | grep -A6 "Allocated resources"
Pending 还可能是『镜像正在拉』:大镜像冷启动几分钟很正常,看 Events 里有没有 Pulling 进度。

易错点

  • 直接删了重建:调度条件没变,新 Pod 还是 Pending,浪费一次冷却
  • 只看 describe 不核对节点余量:requests 总量超卖时持续 Pending

数据来源与参考

  • Kubernetes Docs:Pod Lifecycle
  • Kubernetes Docs:Assigning Pods to Nodes

相关工具

​‌‌​​‌​​​‌‌​‌‌‌‌​‌‌​​​‌‌​‌‌‌​​‌‌​​‌​‌‌‌​​‌‌‌​​​‌​‌‌​‌​​‌​‌‌‌​​​‌​‌‌​‌​​‌​‌‌​​​‌‌​‌‌‌​‌​​​‌‌​‌‌‌‌​​‌​‌‌‌​​‌‌​​​‌‌​‌‌​‌‌‌‌​‌‌​‌‌​‌