Pod annotation disappears after the pod restart/recreation. What is the best approach to recreate? #8300
Unanswered
ccna2ccda
asked this question in
Community support Q&A
Replies: 1 comment 3 replies
-
add it to whoever owns/create the new pod. ie. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi everyone,
Using the annotation command below, we can exclude pod volume to be backed up by velero; but the annotation will be removed after the pod get restarted. What is the best approach to attach this command to pod's lifecycle? Assuming we can't change the original yaml/helmchart. Thanks.
kubectl -n YOUR_POD_NAMESPACE annotate pod/YOUR_POD_NAME backup.velero.io/backup-volumes-excludes=YOUR_VOLUME_NAME_1,YOUR_VOLUME_NAME_2,...
Beta Was this translation helpful? Give feedback.
All reactions