I try to get a general understanding of OOMKilled events and I've found 2 different reasons:
Pod memory limit exceeded: If the Container continues to consume memory beyond its limit, the Container is terminated.
Node out of memory: If the kubelet is unable to reclaim memory prior to a node experiencing system OOM, ... then kills the container ...
Questions
Both problems result in different error states:
1: An exceeded pod memory limit causes a OOMKilled
termination
2: Node out of memory causes a MemoryPressure
and pod eviction.
kubectl describe pod mypod-xxxx
...
Reason: Evicted
Message: Pod The node had condition: [MemoryPressure].
...