我已经用命令启动了Pod
$ kubectl run busybox –image=busybox –restart=Never –tty -i –generator=run-pod/v1出了点问题,现在我不能删除它Pod。
我尝试使用下面描述的方法,但是Pod不断重新创建。
$ kubectl delete pods busybox-na3tm pod "busybox-na3tm" deleted $ kubectl get pods NAME READY STATUS RESTARTS AGE busybox-vlzh3 0/1 ContainerCreating 0 14s $ kubectl delete pod busybox-vlzh3 --grace-period=0 $ kubectl delete pods --all pod "busybox-131cq" deleted pod "busybox-136x9" deleted pod "busybox-13f8a" deleted pod "busybox-13svg" deleted pod "busybox-1465m" deleted pod "busybox-14uz1" deleted pod "busybox-15raj" deleted pod "busybox-160to" deleted pod "busybox-16191" deleted $ kubectl get pods --all-namespaces NAMESPACE NAME READY STATUS RESTARTS AGE default busybox-c9rnx 0/1 RunContainerError 0 23s