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

K8ssandra operator deletes pvc on K8ssandraCluster deletion #1229

Open
berginv opened this issue Mar 5, 2024 · 2 comments
Open

K8ssandra operator deletes pvc on K8ssandraCluster deletion #1229

berginv opened this issue Mar 5, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@berginv
Copy link

berginv commented Mar 5, 2024

What is missing?

Preserve the pvcs when deleting a K8ssandraCluster

Why do we need it?

If there is an accidental deletion . The data will be lost forever .But if this feature exists. we can toggle whether to keep data or destroy altogether.

Environment

  • K8ssandra Operator version:

    cr.k8ssandra.io/k8ssandra/k8ssandra-operator:v1.13.0

Anything else we need to know?:

@berginv berginv added the enhancement New feature or request label Mar 5, 2024
@berginv berginv changed the title K8ssandra operator deletes pvc on deletion K8ssandra operator deletes pvc on K8ssandraCluster deletion Mar 5, 2024
@burmanm
Copy link
Contributor

burmanm commented Mar 5, 2024

The data is preserved in PVs, not PVCs. k8ssandra-operator does not delete the PVs, that's controlled by your StorageClass.

@berginv
Copy link
Author

berginv commented Mar 6, 2024

Yes, you are correct . Please assume this scenario where I delete my k8ssandra cluster and recreate with no change. The operator will delete the PVCs and then recreate it, which will create a new PV (provisioned by storage class). In this scenario I can't use my existing PV. It would be good if there is a toggle as in this Reference

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
Status: No status
Development

No branches or pull requests

2 participants