You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm unable to create/update ScaleObjects with either CPU; memory; or both scalers, if the underlying workload assigns only resource limits and does not set any requests.
Expected Behavior
Based on Kubernetes documentation (I brought the quote below from here), users can assign only resource limits to their containers, so the ScaledObject admission webhook should also consider the resource limits during workload resources validation.
Note: If you specify a limit for a resource, but do not specify any request, and no admission-time mechanism has applied a default request for that resource, then Kubernetes copies the limit you specified and uses it as the requested value for the resource.
Actual Behavior
Workloads that only set resource limits are rejected by the admission webhook.
Steps to Reproduce the Problem
Create a Deployment that assigns only resource limits (e.g CPU limits):
admission webhook \"vscaledobject.kb.io\" denied the request: the scaledobject has a cpu trigger but the container echo-server doesn't have the cpu request defined
Logs from KEDA operator
No response
KEDA Version
2.11.1
Kubernetes Version
None
Platform
Any
Scaler Details
CPU, memory
Anything else?
No response
The text was updated successfully, but these errors were encountered:
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions.
stalebot
added
the
stale
All issues that are marked as stale due to inactivity
label
Sep 16, 2023
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions.
stalebot
added
the
stale
All issues that are marked as stale due to inactivity
label
Nov 17, 2023
tomkerkhove
added
help wanted
Looking for support from community
stale
All issues that are marked as stale due to inactivity
and removed
stale
All issues that are marked as stale due to inactivity
labels
Nov 21, 2023
stalebot
removed
the
stale
All issues that are marked as stale due to inactivity
label
Nov 21, 2023
Report
I'm unable to create/update ScaleObjects with either CPU; memory; or both scalers, if the underlying workload assigns only resource limits and does not set any requests.
Expected Behavior
Based on Kubernetes documentation (I brought the quote below from here), users can assign only resource limits to their containers, so the ScaledObject admission webhook should also consider the resource limits during workload resources validation.
Actual Behavior
Workloads that only set resource limits are rejected by the admission webhook.
Steps to Reproduce the Problem
Logs from KEDA operator
No response
KEDA Version
2.11.1
Kubernetes Version
None
Platform
Any
Scaler Details
CPU, memory
Anything else?
No response
The text was updated successfully, but these errors were encountered: