<p>I just saw some of my pods got evicted by kubernetes. What will happen to them? just hanging around like that or I have to delete them manually?</p>

<p>A quick workaround I use, is to delete all evicted pods manually after an incident. You can use this command:</p>

<pre><code>kubectl get pods --all-namespaces -o json | jq '.items[] | select(.status.reason!=null) | select(.status.reason | contains("Evicted")) | "kubectl delete pods \(.metadata.name) -n \(.metadata.namespace)"' | xargs -n 1 bash -c
</code></pre>
