环境

ubuntu虚拟机
k8s1.24.4

报错

搭建k8s过程中,coredns报错【[FATAL] plugin/loop: Loop (127.0.0.1:55710 -> :53) detected for zone ".", see https://coredns.io/plugins/loop#troubleshooting. Query: "HINFO 6229007223346367857.5322622110587761536."】

原因:是因为dns设置了包含127.0.x.x导致的

解决

临时解决

操作:
1)去掉/etc/resolv.conf中127.0.xx
2)重启kubelet

systemctl daemon-reload
systemctl restart kubelet

3)重新下发coredns的yaml

好啦!

参考

[FATAL] plugin/loop: Loop (127.0.0.1:55710 -> :53) detected for zone “.”, see https://coredns.io/…

Logo

腾讯云面向开发者汇聚海量精品云计算使用和开发经验,营造开放的云计算技术生态圈。

更多推荐