- Home
- All questions
- Question 367
CKA study material · question 367 of 1000
Which two statements about kubectl logs are correct? Choose two.
Show the answer
Answer: A. Without flags it shows the current container's output
C. --previous reads the log of the instance that crashed before it
kubectl logs shows the running container, and --previous reaches the instance that ran before the current one.
Source: Debug Running Pods (Kubernetes) — Examining pod logs