- Home
- All questions
- 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?
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