问题

执行kubectl命令时报错

#查看日志
kubectl logs xxxxx
#进入pod容器
kubectl exec -it xxxx

Kubernetes报错:Error from server: error dialing backend: dial tcp x.x.x.x:10250: connect: no route to host

解决

检查Pod所在节点的防火墙是否开启

#查看Pod所在的Node
kubectl get pods -o wide
#在Node节点查看防火墙状态
systemctl status firewalld
#如果出现绿色running状态,可考虑关闭防火墙,或通过iptables放行入方向10250端口,这里仅关闭防火墙
systemctl disable --now firewalld

相关文章:

  • 2022-12-23
  • 2021-10-05
  • 2022-01-04
  • 2021-12-13
  • 2021-07-25
  • 2021-06-22
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-10-19
  • 2022-02-22
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案