-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Conditional PV backup opt-in. #317
Comments
@jbeda would appreciate any input you might have on this one |
Hi @jacobstr - the use-case you're describing makes sense. Do you have additional details around how PV/PVCs tend to be provisioned in your environments? I'm wondering whether the existing --selector flag (with or without negation) or maybe a --ignore-selector would be sufficient for these uses. Teams could label their PVs with |
@rosskukulinski I don't think the existing selector flag sounds sufficient for this use case. It sounds like there needs to be an additional flag that selects just PVCs/PVs. |
@rosskukulinski another data point - let's say you have the following items:
If you do
This is our approach to making sure that if you use a label selector to back up things (such as pods), we make sure to include the associated PVs. Our original documentation & example before we added this logic required the user to manually label the PVC (if needed) and PV so they'd be backed up. This is especially true for dynamically provisioned PVs. xref #591 |
xref #929 |
I have a hard time excluding a PV auto-provisioned from a PVC. Label based filtering on pod and PVC level does not help since the PV does not inherit the label. Ideally for my use case, label based filtering of the PVC would affect whether the associated PV would be backed up or not, but looking at test code currently that is not a supported feature. |
We have some related use cases:
I don't want Velero to spend tebibytes of backup space and hours of time backing up disks we don't need backed up, but we have plenty of other disks that do need backing up. |
Building on the example scenario given by @ncdc above. Update: I think I got the answer from here |
Just out of curiosity , is this on some roadmap or planned yet ? |
@mithuns it is not currently prioritized. If you're interested in this feature, could you provide some more information on your use case? Thanks! |
So, as described above by @karlkfi and @stanislavb , there are multiple cases where auto-provisioned pv is hard to exclude or be applied velero exclude label. Ideally if there is a way to setup such rules in velero itself, that would be great. Kind of like a matrix (rule book, config whatever we wish to call it),
|
I don't think this will be something Velero tackles any time soon. It may be solved as part of our move to Astrolabe. |
Feature Suggestion
The thought has come up that we may want users to opt-in to PV backups e.g. via a label or annotation. We advise folks to use PV's in general to guarantee disk space for things such as local scratch space. We do a lot of image processing, which results in large, fungible cache PV's.
Host disk is currently unbounded by resource limits ala cpu/memory. The effort to improve this is under way in kubernetes/community#306.
The text was updated successfully, but these errors were encountered: