环境
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/…