Skip to content
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 resolution not working with vm-driver none #3375

Closed
saivarunr opened this issue Nov 28, 2018 · 8 comments
Closed

DNS resolution not working with vm-driver none #3375

saivarunr opened this issue Nov 28, 2018 · 8 comments
Labels
area/dns DNS issues co/none-driver help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. kind/bug Categorizes issue or PR as related to a bug. priority/awaiting-more-evidence Lowest priority. Possibly useful, but not yet enough support to actually get it done.

Comments

@saivarunr
Copy link

Is this a BUG REPORT or FEATURE REQUEST? (choose one): BUG REPORT

Please provide the following details:

Environment:

Minikube version (use minikube version): v0.30.0

  • OS (e.g. from /etc/os-release): Ubuntu 16.04.4 LTS (Xenial Xerus)
  • VM Driver (e.g. cat ~/.minikube/machines/minikube/config.json | grep DriverName): none
  • ISO version (e.g. cat ~/.minikube/machines/minikube/config.json | grep -i ISO or minikube ssh cat /etc/VERSION):
  • Install tools:
  • Others:
    The above can be generated in one go with the following commands (can be copied and pasted directly into your terminal):
minikube version
echo "";
echo "OS:";
cat /etc/os-release
echo "";
echo "VM driver:"; 
grep DriverName ~/.minikube/machines/minikube/config.json
echo "";
echo "ISO version";
grep -i ISO ~/.minikube/machines/minikube/config.json

What happened:
service name resolution is un-stable, once it is resolved, after a while it won't
What you expected to happen:
service name should be resolved.
How to reproduce it (as minimally and precisely as possible):
Create a pod and expose a service.
Poll to the above service from another pod.
Output of minikube logs (if applicable):

Anything else do we need to know:

@tstromberg tstromberg added kind/bug Categorizes issue or PR as related to a bug. os/linux co/none-driver area/dns DNS issues labels Dec 4, 2018
@hach-que
Copy link

hach-que commented Jan 4, 2019

Still an issue on 0.32.0.

@blind3dd
Copy link

yup, found out yesterday that Introduced KubeAdm change with resolv.conf doesn't solve the issue here and still the manual change in /etc/hosts file had to be done inside of a pod with service name and service ip like (redis-server - ip)
I'll put more info after updating kubectl to the newest version.

@tstromberg tstromberg added help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. priority/awaiting-more-evidence Lowest priority. Possibly useful, but not yet enough support to actually get it done. and removed os/linux labels Jan 23, 2019
@davidgarciaMontreal
Copy link

This is working for me on version 1.0.0. i logged into a pod and the dns resolution does work.
Why is this ticket still open?

sudo rm /etc/resolv.conf
sudo ln -s /run/systemd/resolve/resolv.conf /etc/resolv.conf

vagrant@dhost:~/poc-bob/vagrant$ minikube version
minikube version: v1.0.0
sudo minikube start --vm-driver=none

@saivarunr
Copy link
Author

Minikube version it didn't work for is : v0.30.0

@tstromberg
Copy link
Contributor

Thanks for the update! I'm marking this as obsolete.

@schollii
Copy link

schollii commented May 16, 2019

@tstromberg I'm facing this issue with minikube v1.0.0 running in ubuntu vm (so vm-driver=none), ie if I shell into a pod I can connect to another pod by cluster IP of the associated service but not by name of the service. What is the solution, not clear from the above discussion.

@schollii
Copy link

schollii commented May 16, 2019

Actually just saw #3511 (comment), trying it....

Update: that worked. I had to delete the cluster first. After the restart with given flag, the core-dns pods were running fine and dns resolution on services works.

@blind3dd
Copy link

blind3dd commented May 16, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/dns DNS issues co/none-driver help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. kind/bug Categorizes issue or PR as related to a bug. priority/awaiting-more-evidence Lowest priority. Possibly useful, but not yet enough support to actually get it done.
Projects
None yet
Development

No branches or pull requests

6 participants