Kubernetes pod gets recreated when deleted

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

    Instead of removing NS you can try removing replicaSet

    kubectl get rs --all-namespaces
    

    Then delete the replicaSet

    kubectl delete rs your_app_name
    

提交回复
热议问题