Back to archive

When Checkout Broke, I Did Not Guess

The first minute of an incident should be boring: describe, events, previous logs, then mitigate.

Production idea

CrashLoopBackOff, OOMKilled, event timelines, previous logs, and rollback.

kubectl describe pod <pod>kubectl get events --sort-by=.lastTimestamp -n <ns>kubectl logs <pod> --previous
  • Read events before guessing.
  • Use logs --previous for crashed containers.
  • Capture events before they expire.
  • End with owned, dated postmortem actions.