OOMKilled Pod Analysis & Fix
Accenture ☯️ Medium Kubernetes
Beginner Mode

Start your terminal to use beginner mode.

Scenario

A memory-intensive application named oom-demo is repeatedly crashing. The pod status shows CrashLoopBackOff, but you need to confirm the underlying cause is an "Out Of Memory" (OOM) error and fix it by increasing the memory limit.

Task

Inspect the existing pod oom-demo in the apps namespace. Confirm the termination reason is OOMKilled. Update the pod definition to increase the memory limit from 20Mi to 100Mi. Verify the pod stabilizes and enters the Running state.

Example

Initial State (Failing):

$ kubectl get pod oom-demo -n apps
NAME       READY   STATUS             RESTARTS
oom-demo   0/1     CrashLoopBackOff   4

Success State (Fixed):

$ kubectl get pod oom-demo -n apps
NAME       READY   STATUS    RESTARTS
oom-demo   1/1     Running   4

Terminal requires a larger screen

Open this page on a desktop or tablet (≥ 768px) to launch the terminal and practice hands-on.

Kubernetes Environment

Launch a live cluster to solve this challenge.

Sign In

Track

Question Difficulty Company Access
Need more practice in this area? Explore more questions →