Study. uk . com
  1. Home
  2. All questions
  3. Question 367

CKA study material · question 367 of 1000

Which two statements about kubectl logs are correct? Choose two.

  1. Without flags it shows the current container's output
  2. --previous merges the logs of every restart
  3. --previous reads the log of the instance that crashed before it
  4. It reads logs directly from etcd
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

Challenge yourself on this topic → Study as cards