当我运行
"kubectl获取节点";或";kubectl get pods">
我在本地机器上运行minikube,不会同样返回任何错误。
显然,问题是我在清理容器时删除了docker容器。我所要做的就是跑步;minikube启动";它重新创造了一切。Everthing现在运行良好
(base) libracoder@arete:~$ minikube start
😄 minikube v1.16.0 on Ubuntu 20.04
✨ Using the docker driver based on existing profile
👍 Starting control plane node minikube in cluster minikube
🔄 Restarting existing docker container for "minikube" ...
🧯 Docker is nearly out of disk space, which may cause deployments to fail! (91% of capacity)
💡 Suggestion:
Try at least one of the following to free up space on the device:
1. Run "docker system prune" to remove unused docker data
2. Increase the amount of memory allocated to Docker for Desktop via
Docker icon > Preferences > Resources > Disk Image Size
3. Run "minikube ssh -- docker system prune" if using the docker container runtime
🍿 Related issue: https://github.com/kubernetes/minikube/issues/9024
🐳 Preparing Kubernetes v1.20.0 on Docker 20.10.0 ...
🔎 Verifying Kubernetes components...
🔎 Verifying ingress addon...
🌟 Enabled addons: storage-provisioner, default-storageclass, ingress
🏄 Done! kubectl is now configured to use "minikube" cluster and "default" namespace by default
(base) libracoder@arete:~$ kubectl get nodes
NAME STATUS ROLES AGE VERSION
minikube Ready control-plane,master 9d v1.20.0
(base) libracoder@arete:~$ kubectl get pods
NAME READY STATUS RESTARTS AGE
mongodb-deployment-6586d9cdd9-8rkxg 0/1 CrashLoopBackOff 89 19h
nodejs-deployment-77767cd597-hz5qc 1/1 Running 3 19h
(base) libracoder@arete:~$