安装 VirtualBox:
https://www.virtualbox.org/wiki/Downloads安装 kubectl:
1 | # brew install kubectl |
官方链接:
https://kubernetes.io/docs/tasks/tools/install-kubectl/
- 安装 minikube (minikube 使用google官方地址安装启动卡死,故使用国内阿里云地址):
1 | curl -Lo minikube http://kubernetes.oss-cn-hangzhou.aliyuncs.com/minikube/releases/v0.26.1/minikube-darwin-amd64 && chmod +x minikube && sudo mv minikube /usr/local/bin/ |
windows使用如下地址:
1 | http://kubernetes.oss-cn-hangzhou.aliyuncs.com/minikube/releases/v0.26.1/minikube-windows-amd64.exe |
google官方地址:
1 | curl -Lo minikube https://storage.googleapis.com/minikube/releases/v0.26.1/minikube-darwin-amd64 && chmod +x minikube && sudo mv minikube /usr/local/bin/ |
- 启动:
1 | minikube start --registry-mirror=https://registry.docker-cn.com |
- 启动 dashboard:
1 | minikube dashboard |
安装 helm:
https://github.com/kubernetes/helm/releases
参考文献:
https://kubernetes.io/docs/tasks/tools/install-kubectl/
https://yq.aliyun.com/articles/221687