罗曙晖
罗曙晖
Aug 28, 2017 · 1 min read

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’.*

)
Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade