The container was terminated because it used more memory than its limit (OOM killed). The exit code is typically 137. This is reported as a terminated state with reason OOMKilled.
Warning
N/A
- Report shows: Container terminated with reason OOMKilled (or state table shows reason OOMKilled)
kubectl describe podmay show lastState.terminated.reason: OOMKilled
- Increase the container memory limit in the pod spec if the workload legitimately needs more memory
- Fix memory leaks or unbounded growth in the application
- Review usage:
kubectl top pod(if metrics-server is available) to see current usage before OOM - Consider setting memory requests and limits appropriately and tuning application or JVM heap size