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

CKA study material · question 384 of 1000

Which command reads a container's termination message back?

  1. kubectl top pod <name>
  2. kubectl get pod <name> -o yaml
  3. kubectl logs <name> --previous
  4. kubectl attach <name>
Show the answer

Answer: B. kubectl get pod <name> -o yaml

The termination message appears in the Pod's status, which -o yaml prints.

Source: Determine the Reason for Pod Failure (Kubernetes) — Writing and reading a termination message

Challenge yourself on this topic → Study as cards