Using Minikube

You can also use Minikube, an open source project within the GitHub Kubernetes organization. While you can download a release from GitHub, following listed directions, it may be easier to download a pre-compiled binary. Make sure to verify and get the latest version.

For example, to get the v.0.22.2 version, do:

$ curl -Lo minikube https://storage.googleapis.com/minikube/releases/latest/minikube-darwin-amd64

$ chmod +x minikube

$ sudo mv minikube /usr/local/bin

With Minikube now installed, starting Kubernetes on your local machine is very easy:

$ minikube start

$ kubectl get nodes

This will start a VirtualBox virtual machine that will contain a single node Kubernetes deployment and the Docker engine. Internally, minikube runs a single Go binary called localkube. This binary runs all the components of Kubernetes together. This makes Minikube simpler than a full Kubernetes deployment. In addition, the Minikube VM also runs Docker, in order to be able to run containers.

Last updated