情況如下,更新 pod 時(shí),一直在ContainerCreating
查看詳細(xì)信息如下
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]文章來(lái)源:http://www.zghlxwxcb.cn/news/detail-860511.html
解決方案
根據(jù)百度的資料,是 calico 網(wǎng)絡(luò)組件證書過期導(dǎo)致
執(zhí)行一下命令重啟一下 calico 即可文章來(lái)源地址http://www.zghlxwxcb.cn/news/detail-860511.html
kubectl rollout restart -n kube-system DaemonSet/calico-node
到了這里,關(guān)于k8s pod 無(wú)法啟動(dòng)一直ContainerCreating的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!