HPA shows `<unknown>/70%` for CPU. What do you do?
IntermediateScenarioResources, autoscaling and scheduling
Answer
Situation read → The HPA never scales and TARGETS is unknown.
What I'd do →
kubectl describe hpaand read the conditions (FailedGetResourceMetric)kubectl top podsto test metrics-server- Confirm the pods define
resources.requests.cpu - Check
kubectl get apiservice v1beta1.metrics.k8s.iois Available - On EKS check that metrics-server is installed and security groups allow its port
Why → HPA needs both a working Metrics API and requests to compute utilisation.
Interview tip → Name the three failure points: metrics-server, requests, APIService.
More on Resources, autoscaling and scheduling
How do you choose requests and limits for a new service?BeginnerPods are Pending with `0/6 nodes are available: 6 Insufficient cpu`. What do you do?IntermediateExplain QoS classes and which pods get evicted first.IntermediateCPU limits cause latency spikes though average usage is low. Why and what is the fix?IntermediateHow do you configure an HPA on CPU?BeginnerYou need to scale on queue length or requests per second, not CPU. How?Intermediate