Pods failing with OutOfcpu or OutOfmemory in OpenShift 4
Issue
- There are
podsfailing with reasonOutOfcpuorOutOfmemory, even if they have configuredrequestsandlimits. - Some
podsare failing to run after they are scheduled in a node. -
There are
podsshowingOutOfcpuorOutOfmemorymessages:application-pod 0/1 OutOfcpu 0 2h application2-pod 0/1 OutOfmemory 0 2hmessage: 'Pod was rejected: Node didn't have enough resource: cpu, requested: 200, used: 12769, capacity: 12800' phase: Failed reason: OutOfcpu2h Normal Scheduled pod/application-pod Successfully assigned my-project/application-pod to [node_name] 2h Warning OutOfcpu pod/application-pod Node didn't have enough resource: cpu, requested: 200, used: 12769, capacity: 12800
Environment
- Red Hat OpenShift Container Platform (RHOCP)
- 4
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.