This script (using Vagrant) is used to build a pair of Ubuntu based virtual machines that have the MicroK8S setup of Kubernetes.
It also installs docker, and sets up aliases for kubectl in line with the MicroK8S documentation.
Please note that this script relies on the fact that Vagrant transfers files in /vagrant
to the host
file system, which we can then use to setup the second node.
If you only want a single node version, here's a similar repository.
On my Windows machine, I wanted to follow the advice of a colleague and run MicroK8S to experiment with Kubernetes. I followed the advice on MicroK8S, and tried to use Multipass and found that it recommends using Hyper-V on Windows Hosts. Unfortunately, on my machine, I also use VirtualBox for some machines I've worked with, so I'm unable to use the Hyper-V based MultiPass. Multipass does allow a VirtualBox backend, however, it doesn't then bridge an interface, nor does it allow port forwarding.