Kubernetes pod gets recreated when deleted

后端 未结 17 1053
清酒与你
清酒与你 2020-12-12 10:25

I have started pods with command

$ kubectl run busybox --image=busybox --restart=Never --tty -i --generator=run-pod/v1

Something went wrong

17条回答
  •  死守一世寂寞
    2020-12-12 10:56

    I experienced a similar problem: after deleting the deployment (kubectl delete deploy ), the pods kept "Running" and where automatically re-created after deletion (kubectl delete po ).

    It turned out that the associated replica set was not deleted automatically for some reason, and after deleting that (kubectl delete rs ), it was possible to delete the pods.

提交回复
热议问题