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
相关推荐
victory04311 天前
K8S containerd 打包镜像和部署流程和注意事项
云原生·容器·kubernetes
Yuriey2 天前
K8s部署实践-基于Debian13(Trixie)
云原生·容器·kubernetes
哈里谢顿2 天前
ubuntu 节点无法连接google
kubernetes
喜欢你,还有大家2 天前
DaemonSet && service && ingress的
linux·架构·kubernetes
Yyyy4822 天前
K8s认证授权
云原生·容器·kubernetes
优质&青年2 天前
【Operator pormetheus监控系列四----.alertmanager和Rules服务配置】
运维·云原生·kubernetes·prometheus
victory04313 天前
K8S因NFS挂载点问题崩溃和恢复操作流程以及挂载情况
云原生·容器·kubernetes
CXH7283 天前
k8s-host-mac
macos·容器·kubernetes
不爱笑的良田3 天前
从零开始的云原生之旅(十七):K8s 配置管理最佳实践
云原生·容器·kubernetes
稚辉君.MCA_P8_Java3 天前
玻尔 SpringBoot性能优化
大数据·spring boot·后端·性能优化·kubernetes