You suspect a memory leak is causing pods to OOM every few hours, triggering errors. Mitigate and investigate.

IntermediateScenarioRunning Incidents
Answer

Situation read → Recurring OOMs cause request failures during restarts. Mitigation buys time; investigation finds the leak.

What I'd do →

  1. Confirm: kubectl get pods -n shop shows restarts; kubectl describe pod shows Last State: Terminated, Reason: OOMKilled.
  2. Mitigate: increase memory limit temporarily, add replicas so restarts hurt less.
  3. Correlate memory growth with the version that introduced it (deploy annotations on the memory graph).
  4. Capture a heap dump or profile before the next OOM (pprof, jmap, py-spy) on a canary pod.
  5. Roll back to the previous version if the leak started with a deploy.

Why → Mitigate user impact first, then collect evidence while it is still reproducible.

Interview tip → Mention capturing evidence before it disappears.

All SRE & Reliability questions Roadmap: SRE & incident response

More on Running Incidents