When you are studding k8s and you need to clear your minikube cluster all time.
Download and make it executable:
curl -LO "https://gist.githubusercontent.com/claudioacioli/05176c31b7aae0165c176a067aa234d7/raw/64e6f283c6a22e1d75b3d5f56c09016f02fbb25e/clearkube"
chmod 744 clearkube
Create a sample deployment and expose it on port 8080: See more on minikube start
kubectl create deployment hello-minikube --image=k8s.gcr.io/echoserver:1.4
kubectl expose deployment hello-minikube --type=NodePort --port=8080
Then clear it with:
./clearkube hello-minikube