-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
DNS not configured correctly on a Raspberry Pi cluster #1375
Comments
I have same issue. My environment is
current behaviordig google.com fails
dig @8.8.8.8 google.com succeeded
expected behaviordig google.com works fine. Due to it, I cannot execute |
In my case because it was a development environment, I ended up turning off all of the firewall rules entirely, using |
@soapergem the coredns pod probably should log something why it failed when firewall is on, and iptables trace can be your friend to trace firewall problem, https://youtu.be/9HNKRP7x57M |
Finally, I resolved this issue with three steps.
Thanks for all of your supports. FYI: I'm using flannel v0.13.0 instead of v0.14.0-rc1 now. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
I'm having some trouble setting up Kubernetes with coredns and Flannel, on a cluster of 4x Raspberry Pis. After installing kubeadm on my master node and pulling images, I initialized it with this command:
And then I installed Flannel v0.13.0 using this command:
So far, so good. It spawns the Flannel daemonset on all nodes (although incidentally, I sometimes have to run
sudo ip link delete flannel.1
on each node to get it working), and I can launch containers. However, unfortunately, DNS does not work on my containers. I check the /etc/resolv.conf file and they all point to 10.96.0.10, but this doesn't seem to work. If Ikubectl exec
into a running pod and from there rundig google.com
... it just times out. (Whereas if I rundig @8.8.8.8 google.com
it immediately returns a result, so at least I have Internet connectivity! And that narrows it down to a cluster DNS problem.)I was reading that you have to pass
--pod-network-cidr=10.244.0.0/16
during set up in order for Flannel to work. And as far as I can tell it is working. I'm just wondering if there is an additional parameter I'm missing that will get DNS to finally start working as well?The text was updated successfully, but these errors were encountered: