-
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
none on Ubuntu should automatically set --extra-config=kubelet.resolv-conf #3511
Comments
Thanks for the info! coredns/coredns#2087 and https://stackoverflow.com/questions/53075796/coredns-pods-have-crashloopbackoff-or-error-state/53414041#53414041 were very helpful in understanding this issue. The basic problem as I can understand it is that your machine is already running a DNS server, and that it's causing a feedback loop with CoreDNS. I'm still not sure on the best way to go about resolving this issue. You mention that you are on Ubuntu 18.04, which means this answer could be implementable: Do you mind sharing the output of:
and:
At a minimum, minikube should be able to detect this awkward configuration and warn about it instead of generating a confusing error. |
@tstromberg I have added my own solution that worked into the bottom of my issue. I believe Ubuntu 18.04 by default runs Here are the output of my current setup (which works after disabling systemd-resolved). When I attempt another clean setup I will post the output of the "broken" clean install.
|
i just started playing on minikube and i just bumped into this while i am running on 18.10. should we at least start documenting this bits so people know what to do ? maybe a troubleshooting or FAQ section ? |
On my Ubuntu 18.04, starting minikube with a
|
That worked for me - same symptoms as above. Running Ubuntu 18.04.1. |
Note that minikube will allow you to do a "soft" restart ie without a stop, but this did not solve the problem for me. Reason is that a soft restart does not actually restart the minikube kubelet when vm-driver=none. Problem was fixed after I did |
closing this , as this issue should have been solved by this PR. #4465 please reopen if the issue is still there. |
@medyagh I am still facing the same issue
Edit: Seems like something wrong in my setup, Tried this on a clean Ubuntu VM and it works fine. Will need to debug my setup now |
for running minikube inside a LXC container with ubuntu 20.04(focal) |
Is this a BUG REPORT or FEATURE REQUEST? (choose one):
BUG REPORT
Please provide the following details:
Environment: Ubuntu 18.04, fresh install
Minikube version (use
minikube version
): v0.32.0cat ~/.minikube/machines/minikube/config.json | grep DriverName
): Nonecat ~/.minikube/machines/minikube/config.json | grep -i ISO
orminikube ssh cat /etc/VERSION
): ?The above can be generated in one go with the following commands (can be copied and pasted directly into your terminal):
What happened:
CoreDNS CrashLoopBackOff. Log shows:
Related issue in CoreDNS: coredns/coredns#2087
What you expected to happen:
Expected it to work!
How to reproduce it (as minimally and precisely as possible):
Deploy minikube on Ubuntu 18.04 with "None" driver
Output of
minikube logs
(if applicable):Anything else do we need to know:
Solution:
Add instructions to disable systemd-resolved and use dnsmaq. This worked for me.
The text was updated successfully, but these errors were encountered: