【发布时间】:2021-01-14 02:47:01
【问题描述】:
我在google cloud上搭建一个nginx集群,输入了错误的镜像名称;而不是输入:
kubectl create deploy nginx --image=nginx:1.17.10
我输入了:
kubectl create deploy nginx --image=1.17.10
最终在运行 kubectl get pods 之后,它显示 ImagePullBackOff 作为 pod 的状态。
当我尝试运行上面正确的创建部署命令时,它说“nginx”已经存在。
当我尝试执行 kubernetes delete --all pods 时,使用新 ID 重新创建了 pod,但仍然具有相同的状态,并且仍然无法让我运行上面正确的“kubectl create deploy”命令。现在我被困住了。
我怎样才能撤消它?
【问题讨论】:
标签: kubernetes google-cloud-platform google-kubernetes-engine