Minikube简介
Minikube是1款mini的Kubernetes集群,适合在本机上搭建Kubernetes环境进行测试。
Minikube的安装依赖于虚拟机或容器环境,类似于Kubernetes集群的安装依赖于公有云或私有云等。二者关系如下图所示:
Minikube & dockerhttps://www.processon.com/view/link/65406fd00397106857a366f9
安装过程
1. 安装docker
https://minikube.sigs.k8s.io/docs/drivers/docker/
下载docker安装包:https://docs.docker.com/engine/install/
2. 下载并安装Minikube
https://minikube.sigs.k8s.io/docs/start/
curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube-darwin-arm64
sudo install minikube-darwin-arm64 /usr/local/bin/minikube
3. 在docker中启动Minikube
minikube start --driver=docker
如果镜像报错,可以使用阿里云的repository:
minikube start --image-repository='registry.cn-hangzhou.aliyuncs.com/google_containers' --driver=docker
推荐一款Kubernetes神器“minikube”