kubectl get po -A | grep Terminating | awk '{ system("kubectl delete po " $2 " -n " $1) }'

force delete

kubectl get po -A | grep CrashLoopBackOff | awk '{ system("kubectl delete --grace-period=0 --force po " $2 " -n " $1) }'

all non-running state

kubectl get pods --field-selector=status.phase!=Running -A | awk '{ system("kubectl delete --grace-period=0 --force po " $2 " -n " $1) }'

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store