Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- kubectl get pod -a --all-namespaces -o json \
- | jq '.items[] | select(.status.reason!=null) | select(.status.reason | contains("Evicted")) | "kubectl delete pod \(.metadata.name) -n \(.metadata.namespace)"' \
- | xargs -n 1 bash -c
Add Comment
Please, Sign In to add comment