阿里云k8s出现大量Terminating和Init状态的pod
检查/var/log/messages日志发现报错:Jan 19 11:40:13 iZbp1cl iwssrsvZ kubelet: E0119 11:40:13.074936 4030 docker_sandbox.go:267] Failed to stop sandbox “62481fabdbfcf662du094bf9514fc631c5703a1f676skd17585651069c
检查/var/log/messages日志发现报错:Jan 19 11:40:13 iZbp1cl iwssrsvZ kubelet: E0119 11:40:13.074936 4030 docker_sandbox.go:267] Failed to stop sandbox “62481fabdbfcf662du094bf9514fc631c5703a1f676skd17585651069ca09ed2084”: operation timeout: context deadline exceeded
这是由于containd版本过低导致节点pod异常,高版本的containerd, 已经修复这个问题了
检查containerd和systemd的版本
rpm -qa |grep -i containerd && rpm -qa |grep -i systemd
执行升级命令
yum install -y https://download.docker.com/linux/centos/7/x86_64/stable/Packages/containerd.io-1.2.10-3.2.el7.x86_64.rpm && yum update systemd -y
systemctl daemon-reexec
最后重启服务器解决此问题
YYQ运维技术博客_运维的工作学习之路
飞翔沫沫情博客_一只运维狗的升级打怪之旅
https://www.yeyouqing.top
https://yeyouqing.top
yeyouqing.top
www.yeyouqing.top
更多推荐
所有评论(0)