先安装macos桌面版的docker

  1. brew install kubernetes-cli --verbose
  2. 安装virtualbox
  3. brew cask install minikube
    如果有墙内,可以安装阿里云的版本
    curl -Lo minikube http://kubernetes.oss-cn-hangzhou.aliyuncs.com/minikube/releases/v1.1.1/minikube-darwin-amd64 && chmod +x minikube && sudo mv minikube /usr/local/bin/
  4. 启动minikube
    minikube start --registry-mirror=https://registry.docker-cn.com
  5. (可选)dashboard
    minikube dashboard

标签: k8s

添加新评论