1.下載minikube.docker
curl -Lo minikube http://kubernetes.oss-cn-hangzhou.aliyuncs.com/minikube/releases/v1.0.1/minikube-darwin-amd64 && chmod +x minikube && sudo mv minikube /usr/local/bin/
2.安裝VMware Fushion或Virtual Box.api
略ssh
3.啓動minikube.curl
minikube start --registry-mirror=https://registry.docker-cn.com --vm-driver=vmwarefusion
# Minikube支持如下驅動程序,默認爲virtualbox,none驅動程序須要Docker和Linux環境
1.virtualbox
2.vmwarefusion
3.kvm2
4.kvm
5.hyperkit
6.xhyve (deprecated)
7.hyperv
8.nonegoogle
4.啓動dashboardurl
minikube dashboard
# 若是沒有安裝kubectl命令會報錯
5.在macOS上安裝kubectlspa
curl -LO https://storage.googleapis.com/kubernetes-release/release/v1.14.0/bin/darwin/amd64/kubectl
chmod +x ./kubectl
sudo mv ./kubectl /usr/local/bin/kubectl
6.ssh鏈接到節點code
$ minikube ssh
_ _
_ _ ( ) ( )
___ ___ (_) ___ (_)| |/') _ _ | |_ __
/' _ ` _ `\| |/' _ `\| || , < ( ) ( )| '_`\ /'__`\ | ( ) ( ) || || ( ) || || |\`\ | (_) || |_) )( ___/ (_) (_) (_)(_)(_) (_)(_)(_) (_)`\___/'(_,__/'`\____) $