Skip to content

Instantly share code, notes, and snippets.



Forked from John-Lin/
Created Nov 11, 2020
What would you like to do?
How to Minikube



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


# macOS
$ minikube start --vm-driver=hyperkit
# or
$ minikube start --vm-driver=virtualbox

# Linux
$ minikube start --vm-driver=kvm2
# or
$ minikube start --vm-driver=virtualbox
# or 
$ minikube start --vm-driver=none
# runs the Kubernetes components on the host and not in a VM. Docker is required to use this driver but no hypervisor

Services, Status & Showing IPs

$ minikube ip

$ minikube status
minikube: Running
cluster: Running
kubectl: Correctly Configured: pointing to minikube-vm at

# To access a service exposed via a node port
# Open a browser for cv-server service
$ minikube service cv-server

# To access the Kubernetes Dashboard
$ minikube dashboard

Kubectl context

$ kubectl config use-context minikube
# or 
$ kubectl get pods --context=minikube

Stop, Destroy & Cleanup

$ minikube stop
$ minikube delete
$ rm -rf ~/.minikube


  1. Multiple nodes in minikube
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment