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

相关推荐
chaodaibing6 小时前
记录一次k8s起不来的排查过程
运维·服务器·k8s
progrmmmm10 小时前
k8s使用nfs持久卷
linux·服务器·kubernetes·k8s·运维开发
huosenbulusi1 天前
helm推送到harbor私有库--http: server gave HTTP response to HTTPS client
云原生·容器·k8s
RedCong3 天前
multus使用教程
云原生·k8s·openshift
KubeSphere 云原生4 天前
云原生周刊:K8s 生产环境架构设计及成本分析
云计算·k8s·容器平台·kubesphere
运维小文5 天前
K8S的探针说明和使用方式
docker·容器·kubernetes·k8s·探针·可用性
24k小善5 天前
K8s学习
k8s
progrmmmm8 天前
k8s集群换IP
运维·tcp/ip·ubuntu·kubernetes·k8s
KubeSphere 云原生11 天前
云原生周刊:Prometheus 3.0 正式发布
云计算·k8s·容器平台·kubesphere