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

Minikube IP changes whenever new cluster is created #8569

Closed
9kranti opened this issue Jun 26, 2020 · 3 comments
Closed

Minikube IP changes whenever new cluster is created #8569

9kranti opened this issue Jun 26, 2020 · 3 comments

Comments

@9kranti
Copy link

9kranti commented Jun 26, 2020

Minikube's IP changes whenever I delete a cluster minikube delete and then hit minikube start

Following ways tried but didn't work:

sudo minikube stop; sudo minikube delete &&
docker stop $(docker ps -aq) &&
docker system prune -f --volumes &&
sudo rm -rf ~/.kube ~/.minikube &&
sudo rm -rf /usr/local/bin/localkube /usr/local/bin/minikube &&
sudo systemctl stop '*kubelet*.mount' &&
sudo systemctl stop localkube.service &&
sudo systemctl disable localkube.service &&
sudo rm -rf /etc/kubernetes/

Removed vboxnet0 configuration from virtualBox

Again download minikube and hit minikube start --disk-size=90g --memory=16384 --cpus=3 --kubernetes-version=1.15.2 --driver=virtualbox

Previous IP : 192.168.99.100
New IP: 192.168.99.101
Again delete and start, IP: 192.168.99.102
It increases by 1 everytime.

How to get 192.168.99.100 this as minikube ip?

Hypervisor: VirtualBox Version 6.1.10 r138449 (Qt5.9.5)
kubectl version 1.15.2
Minikube v1.11.0

@9kranti
Copy link
Author

9kranti commented Jun 29, 2020

@medyagh will please give me a solution?

@sharifelgamal
Copy link
Collaborator

There is no deterministic IP for the minikube VM, it'll change on restart occasionally.

@medyagh
Copy link
Member

medyagh commented Jul 7, 2020

@9kranti currently minikube can not guarantee a static IP for the clusters acorss, delete and restart due to driver limiations (virtualbox, kvm ...)

@josedonizetti is working on a solution to add static IPs for docker driver. that we have it on our milestone for v1.13.0
#7756

if you don't mind I close this issue and to track it in this issue for centralized information #7756

@medyagh medyagh closed this as completed Jul 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants