brew install kubectl需要加代理!minikube start --vm-driver=xhyve --docker-env HTTP_PROXY=http://your-http-proxy-host:your-http-proxy-port --docker-env HTTPS_PROXY=https://your-https-proxy-host:your-https-proxy-port
k8s的一个好guide啊,分分钟上手
在mac上操作,使用virtulbox的driver,如果用linux,可以使用kvm的driver,文档在上个链接中有跳转
curl -Lo minikube https://storage.googleapis.com/minikube/releases/latest/minikube-darwin-amd64 && \ chmod +x minikube && \ sudo mv minikube /usr/local/bin/
brew install docker-machine-driver-xhyvesudo chown root:wheel $(brew --prefix)/opt/docker-machine-driver-xhyve/bin/docker-machine-driver-xhyvesudo chmod u+s $(brew --prefix)/opt/docker-machine-driver-xhyve/bin/docker-machine-driver-xhyve
kubectl config use-context minikubekubectl cluster-info
使用minikube中的docker host
eval $(minikube docker-env)docker imageskubectl get nodes
起停minikube
minikube start --vm-driver=xhyve --docker-env HTTP_PROXY=http://192.37.192.236:3128 --docker-env HTTPS_PROXY=https://192.37.192.236:3128eval $(minikube docker-env)minikube stop