Anyway to set/fix the IP address of a Minikube cluster using KVM

I would like to have a fixed IP address for the minikube cluster (the one obtained when typing minikube ip) on my ubuntu host machine (with KVM2) on every start and stop.

I would like to point a DNS subdomain to it in order to test some security stuffs based on subdomain certificates.

is there any way to have that?

2

1 Answer

Currently minikube does not support assigning a static IP to the cluster.

There's a feature request for it on K8s Github: #951 Support for Predictable IP's Across Restarts. You can follow it to check it's development.

Also, you can try with the virtualbox driver:--vm-driver=virtualbox

It won't assign a static IP but it will maintain the IP when your minikube restarts, so it could help.

2

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

You Might Also Like