-
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
Allow velero install
to specify tolerations for daemonset
#2898
Comments
We figured out our problem: our cluster is composed of 3 nodepools, the default, plus let’s say pool A and B. We have 2 applications, let’s say X and Y, and use ‘tolerations’ to force app X on nodepool A, and app Y on nodepool B. Because restic uses no toleration, it runs on default nodepool and fails to backup volumes from applications running on pool A and B. To fix the problem (temporarily), I used Questions to the Velero experts: I need to make these changes permanent. How can I provide these changes to the ‘velero install’ command? Is there a way to provide a daemonset-restic.yaml file to ‘velero install’, and if so, where can I find the default file which I will use to add the toleration config? |
I ended up writing a script to capture the daemonset yaml config, to add the toleration to this config via a sequence of sed updates, and to invoke ‘kubectl replace’ with the updated config. It does the trick but I find that somewhat cheesy. Any solution deemed more elegant and reliable would be appreciated. |
velero install
to specify tolerations for restic daemonset
@jbmassicotte In case you can use the velero helm chart instead, it is possible to specify tolerations for the daemonset there https://github.com/vmware-tanzu/helm-charts/blob/main/charts/velero/values.yaml#L269. As this tripped me off a bit, when trying to do a restic backup on a pod that was running on a node where no restic daemon was running I think it would be good behavior if the backup would raise an error or at least show a warning in the velero logs in this situation. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Should this be unstaled, as it already has been marked as valuable? |
Backup stuck using restic with out any clue, InProgress status. Thanks to @jbmassicotte
Eg
|
velero install
to specify tolerations for restic daemonsetvelero install
to specify tolerations for daemonset
Edited this earlier post of mine given the more recent info I’ve gathered.
What I did
backup.velero.io/backup-volumes: <volumename>
)velero backup create backup1 --include-namespaces mynamespace
The problem
velero backup describe backup1 –details
shows process stuck InProgress, no error, no warning. See attached file.kubectl logs deployment/velero -n velero
says 'Initializing restic repository'What did you expect to happen:
The backup to complete
Anything else you would like to add:
BUT: I also tried removing the use-restic flag (checked that the restic daemonset was not started), added the pod annotation back, and check that: the backup failed with the same "Initializing restic repo" condition. What's up with that!?
Environment:
create-backup.txt
The text was updated successfully, but these errors were encountered: