我已经用命令启动了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
kubectl get events
一下是什么在创建这些对象吗?
kubctl get rc
查看是否已创建ReplicationController。如果是这样,请将其删除,然后删除吊舱。
kubectl get deployment
kubectl delete deployment <deployment_name>
。要获得部署名称,请执行kubectl get deployments
kubectl get all -o name
什么?