-
Notifications
You must be signed in to change notification settings - Fork 72
Updated default cpu limit #1344
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
base: master
Are you sure you want to change the base?
Updated default cpu limit #1344
Conversation
|
Will run the test on this one once tests wrap on another PR ... |
|
/ok-to-test |
|
Many of the kuttl e2e tests are failing because of errors like this: Which is making me question if we are supposed to be removing the request ... or the limit. The ticket may have been written wrong, I'm thinking we probably want to be setting the limit to 0... see https://home.robusta.dev/blog/stop-using-cpu-limits |
|
Nevermind, you're attempting to do the right thing here. Perhaps the key needs to be totally absent instead of being set to '0' to avoid the error we are getting |
|
The problem might be that there's a LimitRange set in the namespace |
|
Don't think that is the problem either. Trying to debug it. |
|
Ok, I think what needs to happen is the 'cpu' key needs to be absent instead of being set to '0': What I'd recommend doing is:
resourceRequirements = core.ResourceRequirements{
Limits: core.ResourceList{
"memory": lmemory,
},
Requests: core.ResourceList{
"cpu": rcpu,
"memory": rmemory,
},
}Move the logic here below that, and check for these conditions:
|
The default cpu limit is now null. This is to remove the cpu limit when a limit is not specified.