I want to start minikube cluster on specific network/network adapter
in VirtualBox
, so that I launch other VMs in same network like below
+-------+ +------+ +----------------+
| | | | | |
| VM2 | | VM1 | | Minikube |
| | | | | Cluster |
| | | | | |
+---+---+ +---+--+ +------------+---+
| | |
| | |
| +------+------------+ |
+--+ | |
| 192.168.10.0/24 +-----+
+-------------------+
But I don't see much options for networking in minikube start
CLI
Is it possible to start minikube like that or any trick to setup like above?
When it comes to adjusting networking with minikube start
you can use the following option:
--host-only-cidr string The CIDR to be used for the minikube VM (only supported with Virtualbox driver) (default "192.168.99.1/24")
As you can see in the table here by default NAT option doesn't give you access to Minikube Cluster VM
neither from host nor from other guests (VMs) but you can additionally set port forwarding which is well described in this article.
Although mentioned minikube start
doesn't support many options that allow you to modify networking of your default VM, you can easily modify it by adding additional bridged adapter
once the Minikube VM
is created using Virtualbox GUI
or vboxmanage
command line tool to modify your network settings as some users suggest here and here.