Kubernetes Pods Terminated - Exit Code 137 Kubernetes Pods Terminated - Exit Code 137 kubernetes kubernetes

Kubernetes Pods Terminated - Exit Code 137


Exit Code 137 does not necessarily mean OOMKilled. It indicates failure as container received SIGKILL (some interrupt or ‘oom-killer’ [OUT-OF-MEMORY])

If pod got OOMKilled, you will see below line when you describe the pod

      State:        Terminated      Reason:       OOMKilled

I have seen a similar error but could not figure out root cause, for us Reason mentioned: Error


The typical causes for this error code can be system out of RAM, or a health check has failed


Was able to solve the problem.

The nodes initially had 20G of ebs volume and on a c5.4xlarge instance type. I increased the ebs to 50 and 100G but that did not help as I kept seeing the below error:

"Disk usage on image filesystem is at 95% which is over the high threshold (85%). Trying to free 3022784921 bytes down to the low threshold (80%). "

I then changed the instance type to c5d.4xlarge which had 400GB of cache storage and gave 300GB of EBS. This solved the error.

Some of the gitlab jobs were for some java applications that were eating away lot of cache space and writing lot of logs.