Read pod logs
Container logs describe a particular process instance. After a restart, retain the prior instance evidence when it is needed to explain the failure.
Understand the pattern
Container logs describe a particular process instance. After a restart, retain the prior instance evidence when it is needed to explain the failure.
Interpret the evidence
Inspect the previous out-of-memory event rather than dismissing the restart because current startup succeeded.
A tempting mistake
A clean startup log proves the previous process never failed.
All names, measurements, prices, versions, and thresholds in this exercise are fictional training data. The evidence supports this bounded scenario, not a claim about a live provider.
Worked example and expected result
$ cat /opt/ai-lab/cases/aiops-serving-resources-009.json{
"fixture": "Fictional training data; not a live measurement.",
"restart_count": 2,
"current_log": "started successfully",
"previous_log": "out of memory"
}Exit status: 0. The command completed successfully in the training fixture.
$ jq .previous_log /opt/ai-lab/cases/aiops-serving-resources-009.json"out of memory"
Exit status: 0. The command completed successfully in the training fixture.
$ printf '%s\n' 'inspect-previous-instance' > /home/learner/lab/aiops-serving-resources-009-decision.txt(no output; exit 0)
Exit status: 0. The command completed successfully in the training fixture.
Explain it
Apply it elsewhere
Keep the momentum.
Complete the lab, then explain and apply the pattern.
Next: Inspect pod resourcesTry an incident drillAnonymous lesson and mastery progress lasts for this session. Sign in to keep synced lesson XP between sessions; mastery stays device-local. No speed bonus, lost lives, or hint penalties.
Keep learning
- 01Describe a serving podPod description brings together events, scheduling and container state. Use the reported reason to choose a focused investigation.Practice
- 02Inspect pod resourcesResource requests, limits and observed use serve different roles. Compare the observation with the relevant boundary instead of treating all resource numbers as the same quantity.Practice
- 03Review a deployment diffRead a deployment diff for behavioral changes, not just additions and deletions. A replica change affects capacity and cost and should be reviewed against readiness and load.Practice