-
Notifications
You must be signed in to change notification settings - Fork 4.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
more vm-driver=none documentation on resolve.conf #4052
more vm-driver=none documentation on resolve.conf #4052
Conversation
Hi @marcosdiez. Thanks for your PR. I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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. |
Can one of the admins verify this patch? |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: marcosdiez If they are not already assigned, you can assign the PR to them by writing The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
We have a chicken and egg problem here.... Saving the file in a place that lasts longer is better but still problematic because if the DNS address changes (and it should because minikube is tends to be used on laptops). I am thinking about a noble, non over engineered solution here. Maybe |
I am still unsure what to do. Here I solved the problem in the following by creating a file called
The first line creates a "proper working" That's not necessary on vmware player (although it causes no issues), but it is mandatory on virtualbox Then again this is not a minikube but, but a kubernetes < 1.14 bug. @tstromberg @afbjorklund what do you suggest ? Just document that ? Write |
Thinking a little bit more about this, I noticed that Is it a given that when one runs minikube, one wants it to load automatically upon reboot ? |
I saw that we use systemd to launch |
Related: #3511 |
Very interesting issue...
On a new box in AWS, minikube was not working unless I used
/run/systemd/resolve/resolv.conf
as theresolv.conf
(which was by the way solved in kubernetes itself here: https://github.com/kubernetes/kubernetes/pull/63691/files )But VirtualBox, the same scripts that were provisioning the box in aws were failing if I used k8s v0.11.x, v0.12.x or v0.13.x. (Things did work on k8s v0.14.0)
grep -E "^nameserver" /run/systemd/resolve/resolv.conf |head -n 3 > /tmp/resolv.conf && sudo -E minikube --vm-driver=none start --extra-config=kubelet.resolv-conf=/tmp/resolv.conf
Did solve the problem, but of course it took me 3 days to find out. Therefore I want to share the knowledge and save other people's time.
At first I though this would be to specific to my setup, but my test was done with a new VirtualBox machine provisioning from the official ubuntu 18.04.02 iso, all that done with scripts, so I can replicate the problem and the solution and my local environment should have nothing to do with it. If more users could test this before it get's merged, maybe that's good idea.