Your deployment shows CrashLoopBackOff. Which command reveals why the previous container instance terminated?
- A kubectl logs <pod>
- B kubectl logs <pod> --previous (correct answer)
- C kubectl get pod <pod> -o wide
- D kubectl top pod <pod>
Shortcut: By the time you investigate, the failed container has been replaced. --previous returns the log stream of the last terminated instance, which contains the actual failure.