Skip to content
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

I don't need snapshots for all members of a statefulset! One would be sufficient. #692

Open
stefanbogunnet opened this issue Nov 19, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@stefanbogunnet
Copy link

stefanbogunnet commented Nov 19, 2024

Describe the feature you'd like to have.
Restrict the snapshot creation to a single member of a statefulset. This would be useful e.g. for mongodb statefulsets where the whole cluster could be restored from a snapshot of one member.

What is the value to the end user? (why is it a priority?)
Safe space. Reduce the number of snapshots taken in a cluster.

How will we know we have a good solution? (acceptance criteria)
If the claimSelector has multiple matches a snapshot is created for only one of them.

Additional context
In a statefulset it's not so easy to assign a label to only a single member of the set - so that this label could be used as a matcher.

So I thought if one has a label that uniquely identifies the statefulset one could use that label for the claimSelector.
Then we would get a match for the pvc attached to each member of the statefulset. If we would have a variable just as
singlematch and if that is set to true the snapshot would be taken for the first matching pvc only.

@stefanbogunnet stefanbogunnet added the enhancement New feature or request label Nov 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant