Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

kubernetes pod stuck in terminating

kubectl get pods --all-namespaces | awk '{if ($4=="Terminating") print "oc delete pod " $2 " -n " $1 " --force --grace-period=0 ";}' | sh
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #kubernetes #pod #stuck #terminating
ADD COMMENT
Topic
Name
4+8 =