He comenzado pods con comando
$ kubectl run busybox --image=busybox --restart=Never --tty -i --generator=run-pod/v1
Algo salió mal, y ahora no puedo eliminar esto Pod
.
Intenté usar los métodos que se describen a continuación, pero se Pod
sigue recreando.
$ 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
qué está creando estos objetos?
kubctl get rc
ver si se creó un ReplicationController. Si es así, elimine eso, luego elimine los pods.
kubectl get deployment
kubectl delete deployment <deployment_name>
. Para obtener el nombre del despliegue, hagakubectl get deployments
kubectl get all -o name
?