Managed Kubernetes
Latest
Frequently Asked Questions
Solutions
How Tos
Internal Only
Templates
Powered By

Title
Message
Create new category
What is the title of your new category?
Edit page index title
What is the title of the page index?
Edit category
What is the new title of your category?
Edit link
What is the new title and URL of your link?
Horizontal Pod Autoscaler Shows <unknown> Targets
Copy Markdown
Open in ChatGPT
Open in Claude
Problem
The Horizontal Pod Autoscaler does not provides any metrics
Bash
xxxxxxxxxx$ kubectl get hpaNAME REFERENCE TARGETS horizontalpodautoscaler.autoscaling/nginx Deployment/nginx-deployment <unknown>/70%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
- Verify that the metrics-server pod is running in your environment
- Check if the pod is reporting its metrics correctly using the metrics endpoint
- After this step check if the HPA is reporting the targets correctly.
- Verify that Requests and Limits are set for all the containers in the pods comprising your deployment.
Bash
xxxxxxxxxx$ kubectl get pods -n kube-system | grep metricmetrics-server-v0.5.0-5fd89488cd-zpjlg 2/2 Running 0 4m18sBash
xxxxxxxxxx$ kubectl get pods -n kube-system | grep metricmetrics-server-v0.5.0-5fd89488cd-zpjlg 2/2 Running 0 4m18sBash
xxxxxxxxxx$ kubectl get hpa##
VariableType to search · ESC to discard
GlossaryType to search · ESC to discard
InsertType to search · ESC to discard
No matches
Last updated on
Was this page helpful?
Discard Changes
Do you want to discard your current changes and overwrite with the template?
Archive Synced Block
Message
Create new Template
What is this template's title?
Delete Template
Message