首页/云/云与容器速查/节点 NotReady 排查(kubelet/运行时/磁盘)

节点 NotReady 排查(kubelet/运行时/磁盘)

节点失联时新 Pod 无处调度、已有负载可能被驱逐:先看 Node 条件与 Reason,再上节点查 kubelet、容器运行时、磁盘与网络。

云与容器速查云更新于 2026-10-12
第 1 步kubectl get nodes -o wide 看状态与版本
第 2 步kubectl describe node 看 Conditions 的 Ready 与 Reason/Message
第 3 步节点上查 kubelet:systemctl status kubelet 与 journalctl -u kubelet
第 4 步容器运行时状态:systemctl status containerd 或 docker
第 5 步排查资源:df -h、free -m、dmesg 看 OOM 与磁盘 I/O 错误

排查命令

排查命令
kubectl get nodes -o wide
kubectl describe node node-1 | grep -A6 -i conditions
ssh node-1 systemctl status kubelet --no-pager
ssh node-1 journalctl -u kubelet -n 100 --no-pager
ssh node-1 df -h /var/lib/containerd /var/lib/kubelet
NotReady 四类常见根因:kubelet 挂了、运行时挂了、磁盘满(DiskPressure)、节点网络不通导致心跳超时。describe 的 Message 多半已写明方向。

易错点

  • 只盯 Pod 不看节点:Pod 集体漂移/卡死时根因常在节点侧
  • 不查前因直接重启 kubelet:磁盘满、证书过期会让 NotReady 反复出现

数据来源与参考

  • Kubernetes Docs:Node Status
  • Kubernetes Docs:Troubleshooting Clusters

相关工具

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