Minikube安装
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
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
8、查看所有pod状态
kubectl get pod --all-namespaces
9、查看集群是否正常工作
kubectl cluster-info
以上是 Minikube安装 的全部内容, 来源链接: utcz.com/z/510994.html