1、下载Minikube二进制文件

sudo curl -Lo minikube https://kubernetes.oss-cn-hangzhou.aliyuncs.com/minikube/releases/latest/minikube-linux-amd64

2、设置权限

sudo chmod +x minikube

3、添加到/usr/local/bin目录下

sudo install minikube /usr/local/bin

4、启动Minikube(使用aliyun镜像仓)

minikube start --vm-driver=virtualbox --registry-mirror=https://registry.docker-cn.com --image-mirror-country=cn --image-repository=registry.cn-hangzhou.aliyuncs.com/google_containers

5、开启Minikube可视化面板

minikube dashboard

Minikube安装-LMLPHP

Minikube安装-LMLPHP

6、安装kubectl

sudo curl -LO https://storage.googleapis.com/kubernetes-release/release/`curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt`/bin/linux/amd64/kubectl
sudo chmod +x ./kubectl
sudo mv ./kubectl /usr/local/bin/kubectl

7、查看kubectl版本

kubectl version

Minikube安装-LMLPHP

8、查看所有pod状态

kubectl get pod --all-namespaces

Minikube安装-LMLPHP

9、查看集群是否正常工作

kubectl cluster-info

Minikube安装-LMLPHP

11-21 11:24