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

CKA study material · question 887 of 1000

Where in a Pod's YAML does a container's termination message appear after it exits?

  1. status.containerStatuses[].lastState.terminated.message
  2. status.message
  3. status.conditions[].message
  4. spec.containers[].terminationMessagePath
Show the answer

Answer: A. status.containerStatuses[].lastState.terminated.message

The message surfaces under lastState.terminated alongside the exit code and finish time, which is why kubectl get pod -o yaml is enough to read it.

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

Challenge yourself on this topic → Study as cards