mini k8 cluster又称为mini kube。本文将讲解如何在本人的macos上部署mini k8 cluster.
1. 检查你的配置
- >2 cpus
- >2 GB free memory
- >20 GB free disk
- docker/podman
2. 安装minikube
brew install minikube
3. 启动minikube
minikube start
当你看到如下内容,说明启动成功
🔎 Verifying Kubernetes components...
▪ Using image gcr.io/k8s-minikube/storage-provisioner:v5
🌟 Enabled addons: storage-provisioner, default-storageclass
🏄 Done! kubectl is now configured to use "minikube" cluster and "default" namespace by default
如果启动失败,则可以尝试如下命令查看log
#找到对应的minikub container
docker ps -a | grep kube | grep -v paus
#查看log
docker logs container_id
尝试google错误,并解决。我在启动过程中,遇到了autofus4相关的错误,参考了