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.
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
Additional notes and platform-specific considerations.
Failed to connect to server: connection refused (HTTP/2)
How to fix "HTTP/2 connection refused" error in Kubernetes
missing request for cpu in container
How to fix "missing request for cpu in container" in Kubernetes HPA
error: invalid configuration
How to fix "error: invalid configuration" in Kubernetes
Fifth diagnostic step