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
相关推荐
杰克逊的日记18 小时前
k8s某pod节点资源使用率过高,如何调整
linux·docker·kubernetes
古城小栈18 小时前
Go 语言容器感知,自动适配 K8s 资源限制
golang·kubernetes
VermiliEiz2 天前
使用二进制文件方式部署kubernetes(1)
kubernetes·云计算
云计算小黄同学2 天前
k8s中的服务通过secret访问数据库的实际案例
数据库·阿里云·kubernetes
炸裂狸花猫2 天前
开源日志收集体系ELK
elk·elasticsearch·云原生·kubernetes·metricbeat
网络小白不怕黑2 天前
Containerd指南:从Docker到K8s的容器运行时
docker·容器·kubernetes
Hui Baby2 天前
K8S蓝绿发布
java·容器·kubernetes
一周困⁸天.2 天前
K8S-Helm
容器·kubernetes
哦你看看2 天前
k8s-持久化存储
云原生·容器·kubernetes