k8s-crio下载镜像报错error creating read-write layer with ID清理缓存

报错

Warning  FailedCreatePodSandBox  2s (x4 over 43s)  kubelet, kube6     (combined from similar events): Failed create pod sandbox: rpc error: code = Unknown desc = error creating pod sandbox with name "some-sandbox-name": error creating read-write layer with ID "a5021e65186da551b712f7dd743d712833e5f75fc727c6f937d421897d2eb9d6": Stat /var/lib/containers/storage/overlay/e17133b79956ad6f69ae7f775badd1c11bad2fc64f0529cab863b9d12fbaa5c4: no such file or directory

手动pull镜像会提示Status: Image is up to date for xxx

解决方案

相关issue:https://github.com/cri-o/cri-o/issues/3768

https://access.redhat.com/documentation/zh-cn/openshift_container_platform/4.9/html/support/troubleshooting-crio-issues#cleaning-crio-storage_troubleshooting-crio-issues

kubectl cordon <nodename>
kubectl drain <nodename> --ignore-daemonsets --delete-emptydir-data
systemctl stop kubelet
.. for pod in $(crictl pods -q); do if [[ "$(crictl inspectp $pod | jq -r .status.linux.namespaces.options.network)" != "NODE" ]]; then crictl rmp -f $pod; fi; done
crictl rmp -fa
systemctl stop crio
crio wipe -f
systemctl start crio
systemctl start kubelet
kubectl uncordon <nodename>
  • 3
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值