Kubernetes pod gets recreated when deleted

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

    This will provide information about all the pods,deployments, services and jobs in the namespace.

    kubectl get pods,services, deployments, jobs
    

    pods can either be created by deployments or jobs

    kubectl delete job [job_name]
    kubectl delete deployment [deployment_name]
    

    If you delete the deployment or job then restart of the pods can be stopped.

提交回复
热议问题