Minikube is a tool that makes Kubernetes run locally. It runs a single node cluster inside a VM. its the fastest way to run Kubernetes cluster mainly used for practicing and studying purpose.
Follow these steps to set up a cluster on Minikube:
update ubuntu your dependencies
$ sudo apt-get update
$ sudo apt-get install -y apt-transport-https
Install VirtualBox on ubuntu
$ sudo apt-get install -y virtualbox virtualbox-ext-pack
Install kubectl
$ curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add -
$ sudo touch /etc/apt/sources.list.d/kubernetes.list
$ echo "deb http://apt.kubernetes.io/ kubernetes-xenial main" | sudo tee -a /etc/apt/sources.list.d/kubernetes.list
$ sudo apt-get update
$ sudo apt-get install -y kubectl
Install Minikube
$ curl -Lo minikube https://storage.googleapis.com/minikube/releases/v0.28.2/minikube-linux-amd64
$ chmod +x minikube && sudo mv minikube /usr/local/bin/
Start minikube
$ minikube start
$ kubectl api-versions