mac 安装 kubernetes

1
2
# brew install kubectl
curl -LO https://storage.googleapis.com/kubernetes-release/release/v1.10.0/bin/darwin/amd64/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