Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- kubectl get pods --all-namespaces | grep Terminating | while read line; do
- pod_name=$(echo $line | awk '{print $2}' ) name_space=$(echo $line | awk
- '{print $1}' ); kubectl delete pods $pod_name -n $name_space --grace-period=0 --force;
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement