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

Remove Reclaim Storage #2203

Merged
merged 3 commits into from
Jul 5, 2024
Merged

Conversation

dvaldivia
Copy link
Collaborator

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:

kubectl -n ns-1 delete tenant tenant
kubectl -n ns-1 delete pvc -l v1.min.io/tenant=tenant

Signed-off-by: Daniel Valdivia <18384552+dvaldivia@users.noreply.github.com>
Signed-off-by: Daniel Valdivia <18384552+dvaldivia@users.noreply.github.com>
pjuarezd
pjuarezd previously approved these changes Jul 5, 2024
@cesnietor cesnietor requested a review from ravindk89 July 5, 2024 18:28
Signed-off-by: Daniel Valdivia <18384552+dvaldivia@users.noreply.github.com>
harshavardhana
harshavardhana previously approved these changes Jul 5, 2024
@dvaldivia dvaldivia dismissed stale reviews from harshavardhana and pjuarezd via 3111710 July 5, 2024 18:29
Copy link
Member

@harshavardhana harshavardhana left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🍰

@harshavardhana harshavardhana merged commit 28fa604 into minio:master Jul 5, 2024
31 checks passed
@dvaldivia dvaldivia deleted the remove-reclaim branch July 5, 2024 18:57
@cniackz
Copy link
Contributor

cniackz commented Jul 5, 2024

Thank you guys 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants