Skip to content

Instantly share code, notes, and snippets.

@ipedrazas
Created June 19, 2017 08:57
Show Gist options
  • Save ipedrazas/9c622404fb41f2343a0db85b3821275d to your computer and use it in GitHub Desktop.
Save ipedrazas/9c622404fb41f2343a0db85b3821275d to your computer and use it in GitHub Desktop.
Delete evicted pods
kubectl get pods | grep Evicted | awk '{print $1}' | xargs kubectl delete pod
@patsevanton
Copy link

kubectl get pod -A | grep Evicted | awk '{print $2 " --namespace=" $1}' | xargs -n 2 kubectl delete pod

work for me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment