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
相关推荐
昌sit!3 小时前
K8S node节点没有相应的pod镜像运行故障处理办法
云原生·容器·kubernetes
A ?Charis6 小时前
Gitlab-runner running on Kubernetes - hostAliases
容器·kubernetes·gitlab
北漂IT民工_程序员_ZG7 小时前
k8s集群安装(minikube)
云原生·容器·kubernetes
2301_8061313614 小时前
Kubernetes的基本构建块和最小可调度单元pod-0
云原生·容器·kubernetes
SilentCodeY14 小时前
containerd配置私有仓库registry
容器·kubernetes·containerd·镜像·crictl
binqian20 小时前
【k8s】ClusterIP能http访问,但是不能ping 的原因
http·容器·kubernetes
探索云原生21 小时前
GPU 环境搭建指南:如何在裸机、Docker、K8s 等环境中使用 GPU
ai·云原生·kubernetes·go·gpu
是垚不是土1 天前
Istio流量镜像测试
运维·kubernetes·云计算·istio
蚊子不吸吸1 天前
DevOps开发运维简述
linux·运维·ci/cd·oracle·kubernetes·gitlab·devops
林小果11 天前
K8S搭建
云原生·容器·kubernetes