搭建最新版的minikube k8s本地测试环境

2018-02-06 09:43:49来源:http://www.lihongyun.com/?p=19作者:孤云大兵的博客人点击

分享

1,安装 虚拟驱动 Hyperkit driver


curl -LO https://storage.googleapis.com/minikube/releases/latest/docker-machine-driver-hyperkit /
&& chmod +x docker-machine-driver-hyperkit /
&& sudo mv docker-machine-driver-hyperkit /usr/local/bin/ /
&& sudo chown root:wheel /usr/local/bin/docker-machine-driver-hyperkit /
&& sudo chmod u+s /usr/local/bin/docker-machine-driver-hyperkit

2,安装kubectl minikube


brew install kubectl
brew cask install minikube

3,设置好docker代理,启动


minikube start --docker-env http_proxy=http://192.168.166.115:1087 --docker-env https_proxy=http://192.168.166.115:1087 --docker-env no_proxy=localhost,127.0.0.1,::1 --vm-driver hyperkit

最新文章

123

最新摄影

闪念基因

微信扫一扫

第七城市微信公众平台