kubernetes
Pod stuck in Pending due to insufficient resources
Pending.*Insufficient (cpu|memory)|FailedScheduling.*Insufficient
Fixes
- 1.Scale up the cluster or add nodes with more resources
- 2.Reduce resource requests in the pod spec
- 3.Check for node taints that prevent scheduling: kubectl describe node
- 4.Remove pods with excessive resource requests from other workloads
schedulingresourcespending
Related Errors
kubernetes4 fixes
Pod in CrashLoopBackOff state
CrashLoopBackOff
- •Check pod logs: kubectl logs pod-name --previous
- •Verify the container entrypoint/command is correct
kubernetes4 fixes
Cannot pull container image
ImagePullBackOff|ErrImagePull
- •Verify the image name and tag exist in the registry
- •Check imagePullSecrets is configured for private registries
kubernetes4 fixes
Container killed due to out-of-memory
OOMKilled
- •Increase memory limits in the pod spec: resources.limits.memory
- •Profile the application to find memory leaks