安装minikube

image.png

  1. $ curl -Lo minikube https://storage.googleapis.com/minikube/releases/latest/minikube-darwin-amd64 \
  2. && chmod +x minikube
  3. $ sudo mv minikube /usr/local/bin

启动minikube

$ minikube start --vm-driver=virtualbox

image.png

查看minikube状态

$ minikube status

image.png

查看minikube版本

$ minikube version
  minikube version: v1.3.0
  commit: 43969594266d77b555a207b0f3e9b3fa1dc92b1

使用minikube启动kubernetes

$ minikube start
  * minikube v1.3.0 on Ubuntu 18.04
  * Running on localhost (CPUs=2, Memory=2461MB, Disk=47990MB) ...
  * OS release is Ubuntu 18.04.2 LTS
  * Preparing Kubernetes v1.15.0 on Docker 18.09.5 ...
    - kubelet.resolv-conf=/run/systemd/resolve/resolv.conf
  * Pulling images ...
  * Launching Kubernetes ...
  * Waiting for: apiserver proxy etcd scheduler controller dns
  * Done! kubectl is now configured to use "minikube"

停止minikube

$ minikube stop

image.png