How to analyze and fix a pod scheduling issue due to Insufficient Memory on Kubernetes or Openshift.
So it may happen that you have a Kubernetes or Openshift deployment and a pod does not want to start and remains in Pending state. First, let’s check the events that are causing this: [root@server ~]# k get events -n <namespace> LAST SEEN TYPE REASON OBJECT MESSAGE 31m Warning FailedScheduling <namespace>/<pod_name> 0/13 nodes are available: 10 Insufficient memory, 3 node(s) had taint {node-role.kubernetes.io/master: }, that the pod didn't tolerate, 4 Insufficient cpu. As we can see, the reason is FailedScheduling and the message complains about insufficient memory and insufficient cpu. ...