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 即可

sh 复制代码
kubectl rollout restart -n kube-system DaemonSet/calico-node
相关推荐
RedCong6 小时前
使用sealos部署kubernetes集群并实现集群管理
云原生·容器·kubernetes
LCY13314 小时前
3.k8s是如何工作的
云原生·容器·kubernetes
LCY13317 小时前
4. k8s核心概念 pod deployment service
云原生·容器·kubernetes
weixin_3993806918 小时前
k8s+helm部署tongweb7云容器版(by lqw)
云原生·容器·kubernetes
Blockchain1 天前
从头开始使用 Go 构建 Orchestrator(第十部分:重构)
kubernetes
Blockchain1 天前
从头开始使用 Go 构建 Orchestrator(第 六部分:指标)
后端·kubernetes
Blockchain1 天前
从头开始使用 Go 构建 Orchestrator(第 八部分:Manager API)
kubernetes
Blockchain1 天前
从头开始使用 Go 构建 Orchestrator(第五部分:Worker 的 API)
后端·kubernetes
程序员果子1 天前
Kubernetes 节点摘除指南
云原生·容器·kubernetes