Comments (8)
@sevenval-admins First of all, velero will proceed to the backup even though one of podvolumebackups fails.
Is it possible for the controller to remove the annotation when the Pod exits?
Or is there a much better solution to my problem?
IMO, maybe velero-volume-controller
should only add annotation to running pod and drop relevant annotation when pod status changes. I will do that later and welcome your PR if it is urgent.
from velero-volume-controller.
It is right that Velero continues with the backup. But the status at the end is PartiallyFailed, which is not good for monitoring the backups.
Unfortunately I can't contribute any PR, because my coding knowledge is not sufficient for that.
from velero-volume-controller.
@duyanghao I can try to look at that. But I don't know if I prefer to ignore pods controlled by a job or/and pod not running. The problem if we simply ignore not running pods, is that we can annotate a pod started by a job, and that this pods terminated during a velero backup.
from velero-volume-controller.
The controller add the annotation to a new pod. I think that it should remove the annotation when the pod is not tunning anymore (error, completed...). I think that it should not add the annotation while the pod is pending, because restic could not work with these pods.
About this issue, we can add a option in the config to choose if we want to exclude pod issued from a job.
I can start a pull request with these features.
from velero-volume-controller.
I opened a pull request for that. Can you take a look ?
from velero-volume-controller.
@fredgate Thanks for your PR, I will verify it later.
from velero-volume-controller.
@sevenval-admins velero-volume-controller
now supports excludeJobs
option, please try with this feature and feel free to reopen this issue if this problem remains unresolved
from velero-volume-controller.
@duyanghao Great. Thanks. Will try the option.
from velero-volume-controller.
Related Issues (10)
- leaderelection errror HOT 6
- Can't build dockerfile HOT 2
- can we exclude pod from some namespace HOT 6
- error in building docker images. HOT 2
- restore pvs of cluster HOT 2
- Ignore PVC according to their storage class HOT 5
- Add Helm chart HOT 3
- velero-volume-controller pods failed with Error loading veleroVolumeConfig HOT 6
- Project still useful ?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from velero-volume-controller.