转:https://blog.csdn.net/shida_csdn/article/details/80028905

kubernetes(k8s)DNS 服务反复重启解决:

k8s.io/dns/pkg/dns/dns.go:150: Failed to list *v1.Service: Get https://10.96.0.1:443/api/v1/services?resourceVersion=0: dial tcp 10.96.0.1:443: getsockopt: no route to host

在使用 Minikube 部署 kubernetes 服务时,出现 Kube DNS 服务反复重启现象(错误如上),

这很可能是 iptables 规则乱了,我通过执行以下命令解决了,在此记录:

  1.  # systemctl stop kubelet
  2.  # systemctl stop docker
  3.  # iptables --flush
  4.  # iptables -tnat --flush
  5.  # systemctl start kubelet
  6.  # systemctl start docker

--------------------- 本文来自 shida_csdn 的CSDN 博客 ,全文地址请点击:https://blog.csdn.net/shida_csdn/article/details/80028905?utm_source=copy

相关文章:

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