Pod Scheduling Failure Due to Insufficient Resources
Description:
A common issue in GKE is that pods fail to schedule because there are not enough CPU or memory resources available in the cluster.
Symptoms:
- Pods remain in Pending status.
- Error message in pod events:
0/3 nodes are available: 1 Insufficient cpu, 2 Insufficient memory.
Step 1: Check Resource Requests and Limits
- Ensure that each pod’s resource requests and limits are properly defined.
Example YAML snippet:

- Use kubectl describe pod <pod-name> to see why the pod is pending.
Step 2: Increase Node Resources
- Add more CPU or memory to your nodes by scaling up the node pool size:
gcloud container clusters resize <cluster-name> --node-pool <pool-name> --num-nodes <new-node-count>
Step 3: Use Pod Priority and Preemption (Optional)
- Assign priorities to critical workloads to ensure they get scheduled first. Example
