Kubernetes pod gets recreated when deleted

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

    I also faced the issue, I have used below command to delete deployment.

    kubectl delete deployments DEPLOYMENT_NAME
    

    but still pods was recreating, So I crossed check the Replica Set by using below command

    kubectl get rs
    

    then edit the replicaset to 1 to 0

    kubectl edit rs REPICASET_NAME
    

提交回复
热议问题