kubernetes
Container killed due to out-of-memory
OOMKilled
Fixes
- 1.Increase memory limits in the pod spec: resources.limits.memory
- 2.Profile the application to find memory leaks
- 3.Set appropriate memory requests to ensure proper scheduling
- 4.Use JVM flags like -XX:MaxRAMPercentage for Java containers
oommemoryresources
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
Pod stuck in Pending due to insufficient resources
Pending.*Insufficient (cpu|memory)|FailedScheduling.*Insufficient
- •Scale up the cluster or add nodes with more resources
- •Reduce resource requests in the pod spec