Horizontal Pod Autoscaler Shows <unknown> Targets

Problem

The Horizontal Pod Autoscaler does not provides any metrics

Bash
Copy

Environment

  • Platform9 Managed Kubernetes - All Versions

Cause

All the containers with the deployment need to have Requests and Limits set for HPA to pick up the metrics. This is also true for all sidecar containers that you will deploy within a pod.

Resolution

  1. Verify that the metrics-server pod is running in your environment
  2. Check if the pod is reporting its metrics correctly using the metrics endpoint
  3. After this step check if the HPA is reporting the targets correctly.
  4. Verify that Requests and Limits are set for all the containers in the pods comprising your deployment.
Bash
Copy
Bash
Copy
Bash
Copy

##

Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard