Interview Prep/Kubernetes/Resources, autoscaling and scheduling

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 →

  1. kubectl describe hpa and read the conditions (FailedGetResourceMetric)
  2. kubectl top pods to test metrics-server
  3. Confirm the pods define resources.requests.cpu
  4. Check kubectl get apiservice v1beta1.metrics.k8s.io is Available
  5. 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.

All Kubernetes questions Roadmap: Kubernetes core

More on Resources, autoscaling and scheduling