-
Notifications
You must be signed in to change notification settings - Fork 829
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
How to use HPAScaleToZero=true flag? #5036
Comments
Hi @Orfeasfil, why you think this is a common scenario? Are you also use this way in single cluster? As for In Karmada, you can do like this: kubectl edit deployment karmada-apiserver -n karmada-system then modify the ...
containers:
- command:
- kube-apiserver
- --feature-gates=HPAScaleToZero=true
...
... thus, you can resolve the above error log, but you will encounter a new error Maybe some help you can find in https://midbai.com/en/post/hpa-scale-to-zero/ |
The feature only supports MetricSourceType as
https://midbai.com/en/post/hpa-scale-to-zero/#does-kubernetes-hpa-support-scaling-down-to-0 |
Yes, thats why i have the following configuration yaml for the FHPA:
where I use the External metrics API to get the metrics. The External metrics API works ok because the same thing with HPA worked fine. |
Just curious to ask, does your |
How can I use the HPAScaleToZero flag in karmada? I tried to edit the
karmada-apiserver
deployment, but still does not let me to set theminReplicas
field in afhpa.yaml
file equal to 0. When I try to do this i get the following error:Any idea here? This is a very common scenario and a guide on how to do this will be very helpful!
Environment:
The text was updated successfully, but these errors were encountered: