dial tcp 10.96.0.1:443: connect: no route to host

1、创建Pod一直不成功,执行kubectl describe pod runtime-java-c8b465b98-47m82

查看报错

Warning FailedCreatePodSandBox 2m17s kubelet Failed to create pod sandbox: rpc error: code = Unknown desc = failed to setup network for sandbox "132760792eed7007c26a041da36c15406e582ced36e4ab6e7b6ce780ace1d2ee": plugin type="calico" failed (add): error getting ClusterInformation: Get "https://10.96.0.1:443/apis/crd.projectcalico.org/v1/clusterinformations/default": dial tcp 10.96.0.1:443: connect: no route to host

Normal SandboxChanged 2s (x11 over 2m16s) kubelet Pod sandbox changed, it will be killed and re-created.

2、解决办法

可能是 iptables 规则乱了

systemctl stop kubelet

iptables --flush

iptables -tnat --flush

systemctl start kubelet

相关推荐
菜地里的小菜鸟6 天前
failed to get imageFs info: non-existent label “docker-images
k8s·failedtogetimagefsin·k8s报错
菜地里的小菜鸟7 天前
kubectl debug
k8s·kubectldebug
腾飞开源9 天前
01_K8s干货笔记之认识K8s
运维·笔记·云原生·容器·kubernetes·k8s·容器化部署
小匠石钧知12 天前
02_在多个RockyLinux10虚拟机上安装k8s集群
云原生·容器·kubernetes·k8s
ShirleyWang01218 天前
让headlamp控制台能访问
linux·服务器·python·k8s·k3s
spider_xcxc18 天前
K8s 部署学习笔记
docker·容器·kubernetes·云计算·k8s
ShirleyWang01218 天前
Day02 K3s NGF(Nginx Gateway Fabric)单 Worker 环境网关更新与故障处置 SOP
linux·服务器·python·k8s·k3s
ShirleyWang01218 天前
DAY01 K3s 私有化部署排障复盘与 SOP
linux·服务器·k8s·k3s·企业部署
XUHUOJUN22 天前
AKS 不是安装在 Windows Server 上,而是运行在 Windows Server 之上的 Azure 平台能力
windows·架构·k8s·azure local·azure stack
Geek-Chow22 天前
Connecting kubectl to a Private EKS Cluster Over an Internal Domain
kubernetes·k8s·aws