How do I force delete kubernetes pods?

前端 未结 7 1981
渐次进展
渐次进展 2021-01-31 07:58

I have the following pods:

NAME                                                 READY     STATUS        RESTARTS   AGE
xxx-myactivities-79f49cdfb4-nwg22                  


        
7条回答
  •  感情败类
    2021-01-31 08:03

    You have these alternatives:

    kubectl delete pod xxx --now 
    

    Or

    SSH into the node the stuck pod was scheduled on Running docker ps | grep {pod name} to get the Docker Container ID Running docker rm -f {container id}

    Or

    kubectl delete pod NAME --grace-period=0 --force
    

提交回复
热议问题