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='.status.containerStatuses[*].restarts'
kubectl get pods -n prod -o custom-columns=R:.status.restartCount --sort-by=R
kubectl get pods -n prod --sort-by='.spec.containers[0].restartCount'