-
Notifications
You must be signed in to change notification settings - Fork 62
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
Make the backup jobs request and limits configurable #143
Comments
I'll take this one |
I have refined this issue. @megian please review and add corrections or more acceptance criteria |
Most is fine by me. I would just reword "I can optimize resource usage or comply with cluster resource policies" to "I can override the default request and limits of the namespace". |
I have updated the summary |
Well in this case this is very theoretic, because it's just a technical issue. K8up is just not usable without this under the cluster conditions. So we probably could write something like enable k8up run on multi tenant cluster allow a higher audience, but as long as I can override the resource and limits, I'm happy with the current wording as well. |
Under implementation Ideas I see |
Yeah I wasn't sure about this. Please feel free to add your own ideas, you know K8up best :) |
I amended the implementation ideas with my ideas |
@Kidswiss I have a question related to this sentence “we should have the ability to set the limits by job and schedule, where values can be overwritten like for the S3 endpoints”, do you mean we need a environment variable for the backup job and another one for the schedule (also per request/limit)? |
I would do the defaults with environment variables. I wouldn't do the overrides with them though. But rather in the CRDs. Create a new type like |
@Kidswiss ok, all clear now, thank you :) |
@megian The PR is now merged and should work. The new feature is currently available in |
@ccremer When is an tagged release planned? I think as this is a production cluster, we don't want to set the deployment to a master or latest tag. |
I don't have a clear date. There's a milestone for feature parity for the code that is currently released: https://github.com/vshn/k8up/milestone/1 |
I don't want to cut a release before we did more tests, so this most probably won't happen this year anymore. |
Summary
As K8up admin
I want to override the default resource request and limits of Pods generated by K8up
So that I can optimize resource usage or comply with cluster or namespace resource policies.
Context
On clusters with a default pod cpu/memory limit, backups jobs are currently limited to these default values, because there is no possibility to override or remove them from k8up.
This limits the use cases on such clusters heavily.
Out of Scope
Further links
Acceptance criteria
Given a K8up
Schedule
object with per-schedule-specified resourcesWhen K8up schedules Jobs
Then the containers in Pods are scheduled with configured resource request and limits
Given a K8up
Schedule
object outside of cluster admin's responsibilityWhen K8up schedules Jobs
Then the containers in Pods are scheduled with configured global default resource request and limits
(in a multi-tenant cluster, customers can create schedules, while cluster-admins can provide global defaults in case customer doesn't define those)
Implementation Ideas
global defaults < schedule defaults < job type specifics
(right overrides left)The text was updated successfully, but these errors were encountered: