Study. uk . com
  1. Home
  2. All questions
  3. 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?

  1. --since=1h
  2. --tail=-1
  3. --timestamps
  4. --previous
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

Challenge yourself on this topic → Study as cards