Sorting with kubectl
You need to find the Pod in namespace prod whose first container has restarted the most. Which command works?
prod
Choose one answer
kubectl get pods -n prod --sort-by='.status.containerStatuses[0].restartCount'
kubectl get pods -n prod --sort-by=restarts
kubectl get pods -n prod -o jsonpath='{.items[*].status.restartCount}'
kubectl top pods -n prod --sort-by=restarts