How to Install Minikube


Minikube lets you run Kuberntes locally. It gives you single node cluster inside a virtual machine on your desktop or laptop. This guide will teach you how to install Minikube on Linux machine (Ubuntu).

If you use Windows, or MacOS please follow instructions from official documentation.

Before you proceed check if your machine supports virtualization:

grep -E --color 'vmx|svm' /proc/cpuinfo

If the output is non-empty you’re good to go. If you get an empty output check your BIOS to verify if virtualization is enabled.

Minikube works with either VirtualBox or Docker, but you don’t need both.

You also need to have kubectl installed.

Minikube

Install Minikube via direct download:

curl -Lo minikube https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64
sudo cp minikube /usr/local/bin/minikube
sudo chmod +x /usr/local/bin/minikube

You can also try to install Minikube using snap.

To confirm successful installation start up a local Kubernetes cluster. If you want to start it with docker, use:

minikube start --driver=none

This may require root though. If you don’t want to use root, use --driver=docker as an alternative.

However, if you are using VirtualBox use:

minikube start --driver=virtualbox

You can stop your cluster at any moment with:

minikube stop

If you want to switch e.g. from Docker to VirtualBox driver, then you have to delete the previous cluster:

minikube delete

We're not spammers, and you can opt-out at any moment. We hate spam as much as you do.

powered by TinyLetter

See also