Jimmy Song 2018-01-16 10:32:03 +08:00
commit 40b131bf52
1 changed files with 10 additions and 1 deletions

View File

@ -26,12 +26,21 @@ chmod +x /usr/local/bin/minikube
```bash ```bash
curl -LO https://storage.googleapis.com/kubernetes-release/release/`curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt`/bin/darwin/amd64/kubectl curl -LO https://storage.googleapis.com/kubernetes-release/release/`curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt`/bin/darwin/amd64/kubectl
或者:
先访问https://storage.googleapis.com/kubernetes-release/release/stable.txt
得到返回值,假设为:v1.9.1,然后拼接网址,直接在浏览器访问:
https://storage.googleapis.com/kubernetes-release/release/v1.9.1/bin/darwin/amd64/kubectl
直接下载kubectl文件。
``` ```
若第一种方式访问多次超时,可以使用上述的第二种方式访问。
## 启动Minikube ## 启动Minikube
假设使用xhyve-driver虚拟技术则需要在minikube start加入参数 `--vm-driver=xhyve`
```bash ```bash
minikube start minikube start --vm-driver=xhyve
Starting local Kubernetes v1.7.5 cluster... Starting local Kubernetes v1.7.5 cluster...
Starting VM... Starting VM...
Downloading Minikube ISO Downloading Minikube ISO