The GitHub repository can be found here: galexrt/k8s-vagrant-multi-node.
The Vagrant VirtualBox provider can't start VMs in parallel (
--parallel flag for
It is possible to do so, but you need to “invest” in
Makefile to run
NODE=X vagrant up, where
NODE=X is the “number” of the node you want to be started.
Makefile to start these “many” targets you use a “hack” like this:
10VMs in parallel using this method would be done like this:
make -j 10 nodes NODE_COUNT=10.
Simple but powerful.
NOTE When you use this method with
Makefileyou can make a “dependency” tree using
Makefiletargets. Instead of relying on Vagrant.
For a full example
Vagrantfile, see the
Vagrantfile_nodes files in the galexrt/k8s-vagrant-multi-node project repository.