- Home
- All questions
- Question 862
CKA study material · question 862 of 1000
A container is in CrashLoopBackOff and kubectl logs shows only a few lines from the newest attempt. Which flag reveals why it died last time?
Show the answer
Answer: D. --previous
--previous reads the log of the container instance before the last restart, which is where a crash-looping container's actual failure is recorded.
Source: Debug Running Pods (Kubernetes) — Examining pod logs