当前位置:   article > 正文

k8s pod 无法启动一直ContainerCreating

k8s pod 无法启动一直ContainerCreating

情况如下,更新 pod 时,一直在ContainerCreating

在这里插入图片描述
查看详细信息如下
Failed to create pod sandbox: rpc error: code = Unknown desc = [failed to set up sandbox container “334d991a478b9640c66c67b46305122d7f0eefc98b2b4e671301f1981d9b9bc6” network for pod “yupay-vip-5c4bb7db5c-s6m52”: networkPlugin cni failed to set up pod “yupay-vip-5c4bb7db5c-s6m52_yupay” network: error getting ClusterInformation: connection is unauthorized: Unauthorized, failed to clean up sandbox container “334d991a478b9640c66c67b46305122d7f0eefc98b2b4e671301f1981d9b9bc6” network for pod “yupay-vip-5c4bb7db5c-s6m52”: networkPlugin cni failed to teardown pod “yupay-vip-5c4bb7db5c-s6m52_yupay” network: error getting ClusterInformation: connection is unauthorized: Unauthorized]

解决方案

根据百度的资料,是 calico 网络组件证书过期导致
执行一下命令重启一下 calico 即可

kubectl rollout restart -n kube-system DaemonSet/calico-node
  • 1
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/凡人多烦事01/article/detail/505943
推荐阅读
相关标签
  

闽ICP备14008679号