Reputation: 1813
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?
Upvotes: 3
Views: 5369
Reputation: 4148
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.
Upvotes: 5