k8s在安装CNI时,一直会报这个错误

完整错误是: 

kubectl describe pod kube-flannel-ds-5hkr8 -n kube-flannel

Failed to create pod sandbox: rpc error: code = Unknown desc = failed to start sandbox container for pod "kube-flannel-ds-5hkr8": Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: invalid slice name: /kubepods.slice/kubepods-burstable.slice/kubepods-burstable-podf7fdf17e_1db8_42a9_8690_6490b0ca5aeb.slice: unknown

我先用的calico,安装之后是类似的这个错误,卸载安装了flannel,也是出现了同样的错误

请教各位大佬这个问题如何修复!!!

Sorry, 补充一下,我把master和node都reset重新安装之后发现在node节点join时,已经出现了类似的问题,

kube-proxy-96thw这个pod的状态一直是: ContainerCreating ,所以我也查了下

kubectl describe po kube-proxy-96thw -n kube-system

Failed to create pod sandbox: rpc error: code = Unknown desc = failed to start sandbox container for pod "kube-proxy-96thw": Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: invalid slice name: /kubepods.slice/kubepods-besteffort.slice/kubepods-besteffort-podbf48ef52_14e9_49bf_b47a_57cb101524bc.slice: unknown

两个问题很类似,已经困扰2天了,跪求各位大佬解答

继续尝试其他方法:我试了1.25版本,一样的问题

我换了aliyun的ecs上,问题反而更严重了,在init时,报了很多的类似问题,基本所有pod都是invalid slice name,蛋疼

各位大佬,有遇到过同样的问题的么?

Logo

K8S/Kubernetes社区为您提供最前沿的新闻资讯和知识内容

更多推荐