-
Notifications
You must be signed in to change notification settings - Fork 486
Remove Reclaim Storage #2203
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
Remove Reclaim Storage #2203
Conversation
Signed-off-by: Daniel Valdivia <18384552+dvaldivia@users.noreply.github.com>
Signed-off-by: Daniel Valdivia <18384552+dvaldivia@users.noreply.github.com>
Signed-off-by: Daniel Valdivia <18384552+dvaldivia@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🍰
Thank you guys 🙏 |
Hello, sorry to dig up this old pr, but i would like to add some elements :) @dvaldivia i totaly understand your point of view when you say that the operator should follow the kubernetes way of letting the end-user to decide to delete PVC(s) of a StatefulSet. Now, the Starting from kubernetes 1.23, a new What do you think ? |
This wouldn't the remove S3 buckets (as you stated in your comment above). It will delete all the PVCs associated with the statefulset (and thus all persistent storage). We could add If you want to remove your PVCs, then you'll have to do it yourself. We don't want MinIO Operator be the one that deletes your precious data. |
@ramondeklein once again, i understand your point of view, and what leads to (yes, i still try to convince you :) ) |
I understand your point-of-view, but please understand ours. Our customers use MinIO for their most sensitive data and although -technically- fiddling with these settings is not MinIO's fault, it will be MinIO that will be blamed. Because of that we are very hesitant with automatic deletion of persistent volumes. If you really need to be able to dispose the object-store, then create an object-store in a separate namespace and trash the namespace. Then you're sure everything is deleted. You may want to create a randomized namespace, so you can run multiple object-stores (in case you run multiple CI/CD pipelines in parallel). |
@ramondeklein crystal clear 👍 Sorry to have bothered you, and thx for the tip :) |
Deleting a tenant's storage in Kubernetes is a sensitive and controversial issue. On one hand, some users may want to
delete storage in CI/CD scenarios. On the other hand, if configured in production environments and forgotten, it risks
potential data loss.
Kubernetes does not automatically delete Persistent Volume Claims (PVCs) when a StatefulSet is deleted, due to the risk
involved. This decision is left to the user. The MinIO Operator adheres to this practice as well.
To delete a tenant's storage, you should manually delete the PVCs associated with the tenant. This can be done via
kubectl at the same time you are deleting the tenant. For example, to delete a tenant named tenant in the namespace
ns-1, run the following commands: