-
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
hyperv: minikube IP is not stable #4029
Comments
This isn't a perfect solution, but what I did was to create a dhcp reservation. I'm using a linux vm to dole out IPs on my hyperv network, so I just added the mac address of the minikube VM to the config and set it to always get the same IP address. As long minikube's vm isn't deleted this just works. If the mac address changes though, then I need to intervene. |
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. |
The workaround for this is to use |
I also got a lot of problems getting a working solution and tried to get a static address setup in minikube or even a DHCP server to assign a static address. Here is what I did on my side. I understand your setup is different and my solution may not fit your needs. My setup is Hyper-V on Windows 10 Pro. I hope it gives you some food for thought as a minimum.
I hope it gets you to a working solution for your setup. Definitely there is a lack of support about minikube on Windows. But I am committed to use it since it allows for greater productivity overall. Have a look at this issue if you wonder why I use an internal VM Switch #5072 . |
Hey @lluck42 are you still seeing this issue? If yes, could you please try upgrading to the latest version of minikube and let us know if you still see this? |
I still face the issue. minikube version: v1.6.1
The idea of @brainfull looks promissing but is a bit hacky. Minishift provides an option to assign a static ip. That would be a great feature in minikube, too. |
I'm also experiencing such issues on minikube version v1.6.2 |
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 |
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. |
We looked into adding this feature and static IP on hyperv doesn't seem feasible right now -- I'm going to go ahead and close this issue, but if anyone has strong feelings about this feel free to reopen. |
is this still unfeasible? @priyawadhwa |
This leads to a chicken and egg problem for users behind a proxy where you can't include the IP in the NO_PROXY list passed in because it's not been allocated yet. |
minikube 0.35.0
IP is always lose in hyperv VM on window 10.
If I shutdown hyperv , ip in minikube-hyperv is lost , and it will get a new ip.
but, this ip is refused by kubectl.
and i have to reinstall minikube all the time.
in window10 1803, switch is inner type,and shared ip from local-switch.
eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
link/ether 00:15:5d:01:8a:09 brd ff:ff:ff:ff:ff:ff
inet 192.168.137.186/24 brd 192.168.137.255 scope global dynamic eth0
valid_lft 604742sec preferred_lft 604742sec
The text was updated successfully, but these errors were encountered: