Comecei pods com comando
$ kubectl run busybox --image=busybox --restart=Never --tty -i --generator=run-pod/v1
Ocorreu um erro e agora não consigo excluir isso Pod
.
Eu tentei usar os métodos descritos abaixo, mas o Pod
continua sendo recriado.
$ 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
para ver o que está criando esses objetos?
kubctl get rc
ver se um ReplicationController foi criado. Nesse caso, exclua-o e exclua os pods.
kubectl get deployment
kubectl delete deployment <deployment_name>
. Para obter o nome da implantação, façakubectl get deployments
kubectl get all -o name
?