kubernetes
HPA unable to fetch metrics
error.*Horizontal Pod Autoscaler.*unable to.*metric
Fixes
- 1.Verify metrics-server is running: kubectl get pods -n kube-system
- 2.Check that resource requests are set on the deployment (required for CPU HPA)
- 3.Verify custom metrics adapter is configured for custom metrics
- 4.Wait a few minutes — metrics may not be available immediately after deploy
hpaautoscalingmetrics
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