-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
feat: add ContainerResource type for HPA cpu/memory scaler #3513
Conversation
0db9849
to
319a5b7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What happens if we apply this resource on k8s < 1.20?
/run-e2e cpu* |
/run-e2e memory* |
When we run it in k8s < 1.20 or with 1.20+ with the |
Signed-off-by: Suresh Kumar <[email protected]>
2320924
to
0464937
Compare
/run-e2e cpu* |
I would, however, improve this so that there is no HPA failure and we log an error + block ScaledObject/ScaledJob creation/edit to fail fast and notify the user. |
That happens already, failure in HPA -> failure in ScaledObject/Job. |
…3513) Signed-off-by: Suresh Kumar <[email protected]>
hey @zroubalik was this change ever released? I dont see it in main? https://github.com/surki/keda/commits/main/pkg/scalers/cpu_memory_scaler.go |
Yes, it was. You need to check https://github.com/kedacore/keda/ not a fork |
Context: https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/#container-resource-metrics
Added feature to target to a specific container in cpu/memory scalers
Checklist
Fixes #1378