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
kube-dns 1.14.7 does not resolve cluster services without external dns #169
Comments
This is 100% reproducible on a vagrant box too. Just change nameserver to a IP that doesn't point anywhere. As a side note, if |
Can you try creating a pod with an unbound server that serves NXDOMAIN (see this gist) and setting it as the upstream nameserver using the kube-dns configmap? |
Using configurations in this gist (please correct if something wrong), this does not help. It also doesn't make a difference if If I use kube-dns 1.9, which we had prior upgrading to 1.14.7, it just works, no matter the resolv.conf on the host has. |
Made it work with unbound and upstreamNameservers. It appears that That said, I'd consider needing such tricks a bug, especially when its regression from kube-dns 1.9. |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
/remove-lifecycle stale Very much valid issue still. |
Hitting this as well! |
I had a similar issue, but removing hostNetwork fixed it for me, so not the same as above. Figured I'd mention it though, since this post helped me realize it was having hostNetwork set to true, that was causing my pods to be unable to resolve the FQDNS. |
Thanks @MrHohn for a ping, but unfortunately kubernetes/kubernetes#67302 does not resolve this issue. With non-responding DNS server, kube-dns still fails to resolve cluster-local DNS names and just times out. Tested with k8s 1.10.4 and kube-dns 1.14.10. |
@tuminoid, How are you executing the queries? For example, if using (edit) Also , recent busybox builds have a "broken" nslookup, that does not follow search path. |
Humm, I got a different result than what you described, probably our setup is different. I basically set
cc @hedayat |
@chrisohaver I'm using busybox with @MrHohn: Result is the same whether you set
|
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Rotten issues close after 30d of inactivity. Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
@fejta-bot: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
If host does not have working DNS nameserver in
/etc/resolv.conf
, kube-dns fails to resolve cluster services.I created a single-machine k8s cluster (1.7.4, kube-dns 1.14.7) in a VM for a machine that has no internet/intranet connectivity for a hack lab. Thus, it has no working DNS on the host, but the DNS IP in the
/etc/resolv.conf
is blocked by firewall.In this case, kube-dns fails to resolve any cluster service in any namespace, including
kube-dns
itself, unless queried using FQDN,kube-dns.kube-system.svc.cluster.local
, despite/etc/resolv.conf
in container pointing correctly to kube-dns, and containing correctsearch
options (kube-system.svc.cluster.local svc.cluster.local cluster.local
).The text was updated successfully, but these errors were encountered: