Kubernetes pod gets recreated when deleted

后端 未结 17 1047
清酒与你
清酒与你 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条回答
  •  萌比男神i
    2020-12-12 10:58

    if your pod has name like name-xxx-yyy, it could be controlled by a replicasets.apps named name-xxx, you should delete that replicaset first before deleting the pod

    kubectl delete replicasets.apps name-xxx

提交回复
热议问题