HorizontalPodAutoscaler fails to scale because the metric it references does not exist or is invalid. Metrics may be missing from metrics-server or custom metrics provider.
Fixes unable to compute replica count: the metrics for metric was not available
# unable to compute replica count: the metrics for metric was not availableunable to compute replica count: the metrics for metric was not available
On this page
HPA uses metrics to decide how many pod replicas to create. When the metric is invalid, does not exist, or has no data, HPA cannot compute the desired replica count. This can be because the metrics-server is not installed, the metric name is incorrect, or the metric is not being exported by your application.
First diagnostic step
Second diagnostic step
Third diagnostic step
Fourth diagnostic step
Fifth diagnostic step
Additional notes and platform-specific considerations.