Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HPA doesn't scale down to minimum size when no data is available from external metrics API server #483

Open
sanmaym opened this issue Aug 16, 2022 · 0 comments

Comments

@sanmaym
Copy link

sanmaym commented Aug 16, 2022

When I try to fetch metrics from external metrics endpoint (such as stackdriver), stackdriver will stop sending metrics if data is not available. For example, the following command will confirm if the adapter is receiving any data from stackdriver or not.

kubectl get --raw "/apis/external.metrics.k8s.io/v1beta1/namespaces/default/loadbalancing.googleapis.com|l3|internal|ingress_packets_count" | jq

image

If the data is not available, the value reported by HPA will go into an unknown state and no scaling activity will happen.
image

Is it possible to build logic into the adapter if data is not available ore reported, then the HPA automatically scales down the metric to minimum size ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant