k8s force delete pod

Sometimes, the pod is always terminating, use the command line to delete the pod.

# kubectl delete pod xxx -n namespace

At this time, you need to force delete the pod on the command line.

# kubectl delete pod xxx -n namespace --force --grace-period=0

Guess you like

Origin blog.csdn.net/yjk13703623757/article/details/107384040