vmware正常运行的的k8s集群,在部署的时候突然无法发布,pod始终处于 creatingContainer的状态,使用kubectl describe命令查看后,报如下问题:
Failed to create pod sandbox: rpc error: code = Unknown desc = [failed to set up sandbox container
"d8a2283ac124556c9e0677b4c8523e65558f1cff2bffff058d4bf0bdfbda70a0" network for pod "canary-nginx01-5b97c5bd66-wmcq9": networkPlugin
cni failed to set up pod "canary-nginx01-5b97c5bd66-wmcq9_default" network: error getting ClusterInformation: connection is
unauthorized: Unauthorized, failed to clean up sandbox container "d8a2283ac124556c9e0677b4c8523e65558f1cff2bffff058d4bf0bdfbda70a0"
network for pod "canary-nginx01-5b97c5bd66-wmcq9": networkPlugin cni failed to teardown pod "canary-nginx01-5b97c5bd66-
wmcq9_default" network: error getting ClusterInformation: connection is unauthorized: Unauthorized]
猜测原因是因为vmware的虚拟机挂起导致的,尝试重启每个节点的kubelet,并没有效果
解决方法,因为是测试环境,所以先用kubectl get pod -A 获取所有的pod
[root

最低0.47元/天 解锁文章
4098

被折叠的 条评论
为什么被折叠?



