The pod shows `OOMKilled`. Diagnose and fix it.

BeginnerHands-onLive debugging tasks
Answer
kubectl describe pod api-7d9f | grep -A3 'Last State'     # Reason: OOMKilled, Exit Code: 137
kubectl top pod api-7d9f --containers                     # current usage vs limit
kubectl get pod api-7d9f -o jsonpath='{.spec.containers[0].resources}'

Fix: raise resources.limits.memory to match the real peak (from metrics, not a guess), or fix the app. For the JVM, set -XX:MaxRAMPercentage=75 so the heap fits inside the limit; for Node, --max-old-space-size.

Key trick → OOMKilled means the container exceeded its memory limit, enforced by the kernel cgroup. Raising requests doesn't help; the limit, or the app's memory use, has to change.

All Real-World Interview questions Roadmap: Interview readiness

More on Live debugging tasks