-
Notifications
You must be signed in to change notification settings - Fork 247
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
KFLUXINFRA-745: ConfigMap Settings for the Default Resource Requests and Limits #4249
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: manish-jangra The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
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.
I don't think that these changes will have any impact on the build container task as the task already specifies default. If you want to increase the default for specific steps within the task, I think you can use a prefix-*
key: as indicated in tektoncd/pipeline#7003.
I also suspect my earlier guidance in slack won't do what is desired here. Not 100% why, but that I'm searching the internet trying to figure out this bit of gitops skulduggery. Also, any PR like this that updates staging has to run hack/deploy-config.sh. I post an example of what I mean if I figure out how to ge the gitops to work. |
OK @manish-jangra @arewm I figured out and havee got an example of the correct gitops mechanics for updating Apologies for my incorrect suggestion yesterday. I'll leave it to you @manish-jangra to update this PR to follow this pattern, as well as work with @arewm if the use of |
Thank you @gabemontero , your proposed solution sounds reasonable. @arewm is there any fixed pattern for tasks naming conventions in Konflux PipelineRuns which can be used as a prefix? |
Are the pods not named according to the name of the task? While some users may customize this name, I assume that the default name we set on the pipeline (i.e. |
|
@manish-jangra, yes there are a lot of containers/steps running within the pod. If the current primary use case for deploying this fix is to try and improve the resource requests for all runs of the build pipeline, then we could just increase it for all steps in the task. If we do not want that, then I don't think that there is any other universal prefix for all steps which we are trying to target. |
I would vote only merging this after konflux-ci/build-definitions#1247 (to cover other tasks that do not have their requests/limits set). If we push this one before, that would make step-build container to run with limit of 0.5 CPU that would be a regression for some big projects. Another way might be to only make this to define requests, as current 10m on CPU is not good for OpenShift scheduler or nodes auto-scaler. |
PR needs rebase. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
@manish-jangra: The following test failed, say
Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
Pipeline ConfigMap Settings for the Default Resource Requests and Limits.
These values are not tested and are for testing purposes to see if it enforces resource requests and limits for the PipelineRin containers with no resource requests and limits set.