Kubernetes CKA sample exam question 123 with answer

Question
List pods sorted by restart count

Answer

kubectl get pods --sort-by='.status.containerStatuses[0].restartCount'