MiniKube - Install

Minikube is single K8s cluster for testing/dev purpose

Minikube requires docker

Ubuntu / Debian

sudo apt-get update && \
    sudo apt-get install -y

CentOS / RedHat

sudo yum install -y yum-utils \
  device-mapper-persistent-data \
sudo yum-config-manager \
    --add-repo \
sudo yum install docker-ce docker-ce-cli

Installing Minikube

curl -Lo minikube && chmod +x minikube && sudo mv minikube /usr/local/bin/

Checking Version

minikube version


Kubectl is a command line interface for running commands against Kubernetes clusters.


The kubectl version has to be within one minor version difference of the Kubernetes cluster. For example, a v1.2 client should work with v1.1, v1.2, and v1.3 master.

Kubectl can be installed on Ubuntu, Debian, CentOS, RedHat operating systems.

Ubuntu / Debian

sudo apt-get update && sudo apt-get install -y apt-transport-https
curl -s | sudo apt-key add -
echo "deb kubernetes-xenial main" | sudo tee -a /etc/apt/sources.list.d/kubernetes.list
sudo apt-get update
sudo apt-get install -y kubectl
chmod +x ./kubectl
sudo mv ./kubectl /usr/local/bin/kubectl

CentOS / RedHat

cat <<EOF > /etc/yum.repos.d/kubernetes.repo
yum install -y kubectl
chmod +x ./kubectl
sudo mv ./kubectl /usr/local/bin/kubectl

For further information about kubectl installation method, please refer to the Kubernetes documentation.

Minikube Start

minikube start --vm-driver=none

Minikube status

minikube status
host: Running
kubelet: Running
apiserver: Running
kubectl: Correctly Configured: pointing to minikube-vm at

Minikube Stop and Delete

minikube stop
minikube delete

Installation of Minikube with kvm2 driver – If you want install with a VM drive!

Installation of minikube

Installation of kvm2

Install dependencies and configure user groups
kvm2 installation

Start minikube

## Sample Minikube run

 kubectl run hello-minikube --port=8080
 kubectl expose deployment hello-minikube --type=NodePort
 kubectl get services

K8s Cheatsheet