当前位置:首页 > Web开发 > 正文

并且一直报503 kubectl logs --tail coredns -n kube-system 发现以下错误c

2024-03-31 Web开发

标签:

安置kubernetes遇见问题

kubectl describe pod coredns -n kube-system, 检察发明coredns readiness 一直unhealthy, 并且一直报503

kubectl logs --tail coredns -n kube-system 发明以下错误coredns dial tcp 10.96.0.1:443: connect: no route to host

原因

使用kubeadm reset重置kubernetes之后,,iptables没有清理洁净导致。

解决步伐

systemctl stop kubelet
systemctl stop docker
iptables --flush
iptables -tnat --flush
systemctl start kubelet
systemctl start docker

重启网络插件

kubectl delete pod weave -n kube-system

安置kubernetes遇见coredns坑

温馨提示: 本文由Jm博客推荐,转载请保留链接: https://www.jmwww.net/file/web/30547.html