$ brew update
$ brew install kubectl
$ brew cask install minikube
$ brew install docker-machine-driver-xhyve
# docker-machine-driver-xhyve need root owner and uid
$ sudo chown root:wheel $(brew --prefix)/opt/docker-machine-driver-xhyve/bin/docker-machine-driver-xhyve
$ sudo chmod u+s $(brew --prefix)/opt/docker-machine-driver-xhyve/bin/docker-machine-driver-xhyve
$ echo '{}' > /Users/ebraun/.minikube/config/config.json
$ minikube start \
--logtostderr \
--vm-driver=xhyve \
--docker-env HTTP_PROXY=$http_proxy \
--docker-env HTTPS_PROXY=$https_proxy \
--docker-env NO_PROXY=192.168.64.0/24
$ export no_proxy=$no_proxy,$(minikube ip)
$ export NO_PROXY=$no_proxy,$(minikube ip)
$ kubectl get nodes
$ kubectl get pods --all-namespaces
$ kubectl run hello-minikube --image=gcr.io/google_containers/echoserver --port=8080
$ kubectl expose deployment hello-minikube --type=NodePort
$ kubectl get pod curl $(minikube service hello-minikube --url)
$ kubectl create -f https://raw.githubusercontent.com/kubernetes/dashboard/master/src/deploy/recommended/kubernetes-dashboard.yaml
$ minikube dashboard
$ minikube stop
$ minikube delete
$ rm -rf ~/.minikube .kube
$ brew uninstall kubectl
$ brew cask uninstall minikube