Content Deep Dive
Exit Code 137 – Fixing OOMKilled Kubernetes Error
Blog post from Spacelift
Post Details
Company
Date Published
Author
Jack Roper
Word Count
1,368
Language
English
Hacker News Points
-
Source URL
Summary
The OOMKilled error in Kubernetes occurs when a container exceeds its memory limit and is terminated by the system with an exit code 137. This error can be diagnosed by checking pod logs, monitoring memory usage, and using a memory profiler. Common causes of this error include reaching the container's memory limit, experiencing a memory leak in the application, or overcommitting the node's memory resources. To fix the OOMKilled error, adjust memory limits and requests for pods, optimize application code to reduce memory consumption, and monitor memory usage in Kubernetes pods and containers.