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
相关推荐
Kendra9196 小时前
Kubernetes 常用命令
云原生·容器·kubernetes
2501_9399090514 小时前
k8s基础与安装部署
云原生·容器·kubernetes
谷隐凡二15 小时前
Kubernetes Route控制器简单介绍
java·容器·kubernetes
李少兄20 小时前
Kubernetes 日志管理
docker·容器·kubernetes
秋饼20 小时前
【K8S测试程序--git地址】
git·容器·kubernetes
oMcLin20 小时前
如何在RHEL 9上配置并优化Kubernetes 1.23高可用集群,提升大规模容器化应用的自动化部署与管理?
kubernetes·自动化·php
ghostwritten20 小时前
Kubernetes 网络模式深入解析?
网络·容器·kubernetes
原神启动121 小时前
K8S(七)—— Kubernetes Pod 基础概念与实战配置
云原生·容器·kubernetes
不想画图21 小时前
Kubernetes(五)——rancher部署和Pod详解
linux·kubernetes·rancher
大都督老师21 小时前
配置 containerd 使用镜像加速器拉取 Docker Hub 镜像
容器·kubernetes·k8s