Is there a way to exclude volumes by name globally in the Restic opt-out strategy? #3323
-
We're using Istio on the cluster, so backups get pretty messy with all of the Istio sidecar volumes. It also seems to cause some failures. I'm not sure if the failure is from the nature of the Istio volumes or not.
There are plenty of successful backups of the Istio volumes. I'm mainly interested in excluding them as they are superfluous. I'm totally fine with the answer being "add the exclude volume annotation to every Pod". It's just that, in practice, we don't have control over how the users annotate their pods. We would need to look into a mutating webhook tool like KubeMod. Just wondering if this is possible using native Velero :). |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments
-
At the moment, no. |
Beta Was this translation helpful? Give feedback.
-
Anything new on this topic? I'm struggling with the same problem and would really like this feature to be implemented. |
Beta Was this translation helpful? Give feedback.
-
maybe you could try this one |
Beta Was this translation helpful? Give feedback.
-
Anything new on this topic? I'm struggling with the same problem and would really like this feature to be implemented. |
Beta Was this translation helpful? Give feedback.
-
@hazzel23 At the moment, we don't have a fix for this. The current velero release includes volume resource policies which allow users to control what happens to volumes at backup time based on certain criteria. There are two obstacles to using it for your purposes, though (one fixed in 1.14, the other would be a future enhancement):
Of the two issues above, 1) will be resolved in 1.14, as we're providing the ability to do the equivalent of opt-out (i.e. use snapshots instead) using volume policies. |
Beta Was this translation helpful? Give feedback.
At the moment, no.