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
multiple /etc/hosts entries created for control-plane.minikube.internal #11052
Comments
Sounds like a simple fix, the script is hardcoded to use Can you do a PR ? |
…e.minikube.internal
I've opened PR #11081, and I'm working on the contributor agreement. |
…e.minikube.internal
The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
This seems to be fixed now, correct? I'll go ahead and close this issue. If something comes up, feel free to reopen. |
Steps to reproduce the issue:
I've tried this on both Mac OS using the hyperkit driver and Ubuntu 18.04 using the "none" driver.
Multiple
/etc/hosts
files entries are created for control-plane.minikube.internal. After using the "none" driver for some time,/etc/hosts
has accumulated quite a few entries for me.Full output of failed command:
$ cat /etc/hosts 127.0.0.1 localhost 127.0.1.1 myhostname # The following lines are desirable for IPv6 capable hosts ::1 ip6-localhost ip6-loopback fe00::0 ip6-localnet ff00::0 ip6-mcastprefix ff02::1 ip6-allnodes ff02::2 ip6-allrouters 127.0.0.1 host.minikube.internal 192.168.50.139 control-plane.minikube.internal 10.8.0.22 control-plane.minikube.internal ... many more ... 10.8.0.26 control-plane.minikube.internal 192.168.50.117 control-plane.minikube.internal 10.8.0.5 control-plane.minikube.internal
We think this is due to a tiny error at machine/start.go:362
As written, the
grep
expression never matches anything because the\t
is ignored, so a new line is appended to the file every time. There are several ways to fix it, but I was successful adding a$
before of the expression to enable BASH ANSI-C quoting:If there's a better place for this discussion, or I can help with the fix (I have a rough test and fix locally), just point me in the right direction.
The text was updated successfully, but these errors were encountered: