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
Delete completed jobs
Clean up successful Jobs when appropriate.
OpenIn sheetbashsame section
Inspect finalizers
See whether finalizers are blocking deletion.
OpenIn sheetbashsame section
Call API server health endpoint
Read API server health information.
OpenIn sheetbashsame section
Call API server ready endpoint
Read API server readiness information.
OpenIn sheetbashsame section
Get component statuses (legacy)
Legacy command seen on older clusters; modern clusters rely on health endpoints and metrics.
OpenIn sheetbashsame section
Custom columns output
Render table output with selected fields.