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 进度。