“Node 节点宕机”在不同场景下含义不同(Kubernetes Node、区块链节点、一般服务器节点等)。下面以最常见、最复杂的 Kubernetes Node 宕机为主线说明排查思路,同时补充通用服务器/节点宕机的排查方法。
kubectl get node
kubectl describe node <node-name>
关注:
Status: Ready / NotReadyConditions: MemoryPressure / DiskPressure / PIDPressureLastHeartbeatTime 是否停止systemctl status kubelet
journalctl -u kubelet -f
常见问题:
top
free -h
df -h
uptime
dmesg | tail
重点看:
/var/log/messages
/var/log/syslog
/var/log/kern.log
journalctl -k
典型宕机原因:
ping <node-ip>
ss -antp | grep 6443
systemctl status docker / containerd
crictl ps
kubectl drain <node> --ignore-daemonsets
kubectl delete node <node>
再重新加节点
last -x
journalctl -b -1
dmesg -T
如果你能补充说明:
我可以给你更精准的排查清单。
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。