💬

Kubernetes Exit Code 137 - OOM Error

in #kubernetes-help

RK
PS
+2
RK
Rajesh Kumar2h ago
Hey everyone! I'm getting a "exit code 137" error when running my pods in my new GKE cluster. I've checked the logs but they verify abruptly. Has anyone faced this before? Is it a configuration issue or something with the application code?
PS
Priya SharmaModerator1h ago
Exit code 137 typically means your container is being killed by the OOMKiller (Out Of Memory). Basically, your pod is trying to use more RAM than the limit you set in your deployment YAML.
AP
Amit Patel45m ago
Exactly what Priya said! You can confirm this by running: `kubectl describe pod <pod-name>` Look for "Reason: OOMKilled" or "Exit Code: 137" in the status section. Try doubling your memory limit request.
RK
Rajesh Kumar30m ago
That was it! Increased memory from 128Mi to 512Mi and it works perfectly now. Thanks everyone! 🙏 I should have checked the describe output 😅