Skip to content
Kubernetes

Diagnose the cluster

Round 1 of 10

0 points

On a new cluster the HPA never scales, though CPU requests are set and the pods are busy.

EvidenceIllustrative output
$ kubectl describe hpa api
Metrics:  ( current / target )
  resource cpu on pods  (as a percentage of request):  <unknown> / 70%
Events:
  Warning  FailedGetResourceMetric  horizontal-pod-autoscaler  failed to get cpu utilization: unable to get metrics for resource cpu: unable to fetch metrics from resource metrics API: the server could not find the requested resource (get pods.metrics.k8s.io)

1 · What is causing it?

What the cluster is doing: HPA not scaling