Get the latest release for your operating system https://github.com/kubernetes/minikube/releases
minikube config
minikube config view
minikube config get driver
minikube config set driver docker
To create and start earlier created cluster Run
minikube start --driver=docker --nodes=1
Cluster will be automatically added to your kubectl config as a default context
Get status of cluset
minikube status
Stop cluster
minikube stop
minikube addons list
minikube addons enable metrics-server
minikube dashboard
List available services in namespace default
minikube service list -n default
Connect service service-name
to localhost port
minikube service -n default service-name
You can create tunnel to a minikube service.
Service should be only loadBalancer
type
List available services in namespace default
minikube tunnel list -n default
Connect
minikube tunnel -n default
Before adding be aware of:
minikube node add
# Stop cluster nodes
minikube stop
# Delete nodes resources
minikube delete
# or
docker rm minikube
docker rm minikube-m02
docker network prune
docker volume prune
# Delete local config and keys
rm -rf ~/.minikube/