(一)Minikube部署Kubernetes集群

  1. 由于需要下载minikube和kubectl,需要http代理
export http_proxy=192.168.1.102:1080
export https_proxy=192.168.1.102:1080
  1. 下载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
 && chmod +x kubectl && sudo mv kubectl /usr/local/bin/
  1. 下载,安装minikube
curl -Lo minikube https://storage.googleapis.com/minikube/releases/v0.25.0/minikube-linux-amd64 && chmod +x minikube && sudo mv minikube /usr/local/bin/
  1. 启动minikube
minikube start --docker-env "HTTP_PROXY=http://192.168.1.102:1080" --docker-env "HTTPS_PROXY=https://192.168.1.102:1080" #默认使用VirtualBox驱动
  1. 这里minikube需要Pull一些镜像,需要等待一段时间再命令dashboard
kubectl describe pods --all-namespaces

Status变为Running后表示完成
此时查看UI

minikube dashboard

你可能感兴趣的:((一)Minikube部署Kubernetes集群)