Pattern to find evicted pods for cleanup.
Section: Cluster Maintenance and Cleanup
Delete evicted pods
bash
bash
kubectl get pods -A --field-selector=status.phase=Failed | grep Evicted | awk '{print $1, $2}'Explanation
Pattern to find evicted pods for cleanup.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Cluster Maintenance and Cleanup
Get component statuses (legacy)
Legacy command seen on older clusters; modern clusters rely on health endpoints and metrics.