Kubernetes pod gets recreated when deleted

后端 未结 17 1070
清酒与你
清酒与你 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:43

    In some cases the pods will still not go away even when deleting the deployment. In that case to force delete them you can run the below command.

    kubectl delete pods podname --grace-period=0 --force

提交回复
热议问题