Minikube is a terrific tool for running a Kubernetes cluster on your local computer. It launches a single-node cluster in a virtual machine which is great for running Kubernetes locally. This post describes how to iterate fast when developing in a local Kubernetes cluster by avoiding unnecessary pushes/pulls of docker images, and shows how to mount folders from a local drive into a cluster.
The workflows are presented for MacOS using VirtualBox. Since the documentation on minikube’s official Github repository is very good, and a lot of great posts about minikube exists, this post will serve as a supplement and show how minikube’s building blocks can be combined.
You will need the requirements listed below.
A single command is enough to start a single-node Kubernetes cluster.
$ minikube start
A virtual machine (boot2docker) is created using the default VirtualBox VM-driver with 2 GB RAM and 2 CPUs assigned. Several custom flags are available