1,安装docker
brew cask install docker
2.安装minikube
brew cask install minikube
3.安装kubectl
brew install kubectl
4.安装docker drive
brew install docker-machine-driver-xhyve
sudo chown root:wheel /usr/local/opt/docker-machine-driver-xhyve/bin/docker-machine-driver-xhyvehis
sudo chmod u+s /usr/local/opt/docker-machine-driver-xhyve/bin/docker-machine-driver-xhyve
6.启动
minikube start — vm-driver=xhyve
7.查看状态
luoshuhui@imac~$ minikube status
minikube: Running
localkube: Running
kubectl: Correctly Configured: pointing to minikube-vm at 192.168.64.2
luoshuhui@imac~$ ping 192.168.64.2
PING 192.168.64.2 (192.168.64.2): 56 data bytes
64 bytes from 192.168.64.2: icmp_seq=0 ttl=64 time=0.142 ms
64 bytes from 192.168.64.2: icmp_seq=1 ttl=64 time=0.130 ms
8.使用kubectl
luoshuhui@imac~$ kubectl cluster-info
*Kubernetes master is running at https://192.168.64.2:8443
To further debug and diagnose cluster problems, use ‘kubectl cluster-info dump’.*
