Advertisement
Guest User

Untitled

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