Minikube allows you to run a Kubernetes cluster locally.


  1. Install Minikube on your Virtual Machine:
    curl -LO
    sudo install minikube-linux-amd64 /usr/local/bin/minikube
    sudo minikube config set vm-driver none

Note: If you have VirtualBox installed, you can specify vm-driver=VirtualBox

  1. Install kubectl:

    curl -LO$(curl -s
    chmod +x kubectl
    sudo mv ./kubectl /usr/local/bin/kubectl
  2. Start Minikube:

    minikube start
  3. You can check your kubectl installation running the following command: kubectl get pods –all-namespaces

This should list all the kube-system pods currently running on the machine.

  1. Create a Deployment

    kubectl create deployment --image nginx my-nginx
    kubectl expose deployment my-nginx --port=80 --type=NodePort
    kubectl get svc
  2. Start Dashboard

    To view your minikube dashboard, run the following command.

    minikube dashboard – url &

    This might throw an error depending on what’s installed on your machine. To access your dashboard you need to run Kubeproxy.

  3. Kubeproxy kubectl proxy –address= –accept-hosts=’.*’

  4. View Minikube Dashboard

    To view your minikube dashboard from your web browser, run the following command:

     (Replace host_ip with the ip address of your VM)
  5. Delete Cluster

    minikube delete