- Home
- All questions
- Question 472
CKA study material · question 472 of 1000
Which command lists Pods ordered by how often they have restarted?
Show the answer
Answer: C. kubectl get pods --sort-by='.status.containerStatuses[0].restartCount'
Sorting on that jsonpath ranks Pods by restart count and surfaces crash loops across a namespace.
Source: kubectl Quick Reference (Kubernetes) — Viewing and finding resources