Open Fricounet opened 7 months ago
The Kubernetes project currently lacks enough contributors to adequately respond to all issues.
This bot triages un-triaged issues according to the following rules:
lifecycle/stale
is appliedlifecycle/stale
was applied, lifecycle/rotten
is appliedlifecycle/rotten
was applied, the issue is closedYou can:
/remove-lifecycle stale
/close
Please send feedback to sig-contributor-experience at kubernetes/community.
/lifecycle stale
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues.
This bot triages un-triaged issues according to the following rules:
lifecycle/stale
is appliedlifecycle/stale
was applied, lifecycle/rotten
is appliedlifecycle/rotten
was applied, the issue is closedYou can:
/remove-lifecycle rotten
/close
Please send feedback to sig-contributor-experience at kubernetes/community.
/lifecycle rotten
/remove-lifecycle rotten
The Kubernetes project currently lacks enough contributors to adequately respond to all issues.
This bot triages un-triaged issues according to the following rules:
lifecycle/stale
is appliedlifecycle/stale
was applied, lifecycle/rotten
is appliedlifecycle/rotten
was applied, the issue is closedYou can:
/remove-lifecycle stale
/close
Please send feedback to sig-contributor-experience at kubernetes/community.
/lifecycle stale
Is your feature request related to a problem?/Why is this needed
Hi all, I wanted to gather some opinions around the idea of providing an automated snapshoting mechanism when a PVC is being deleted. Currently, it can be a bit scary to use a storage class with reclaim policy
Delete
because it means that with one wrong manipulation, if the PVC is deleted, the backing data will also be deleted. On the other hand, using aRetain
storage class is a bit cumbersome because PV will stay in the cluster indefinitely, leading to additional costs. As a result, we need to deploy in our clusters our own garbage collection mechanism to delete unused PV after some time.Having an automated snapshot mechanism would allow us to use
Delete
storage classes while still allowing users to keep a backup of their data in case of accidental deletion.Describe the solution you'd like in detail
For the implementation, I was thinking about the following:
snapshot.storage.kubernetes.io/snapshot-before-deletion
)VolumeSnapshotContent
for the created snapshot (and maybe aVolumeSnapshot
in the same namespace too)but any idea is welcome :smile:
Describe alternatives you've considered
Currently, we are doing something similar with a custom controller in our clusters but we are creating snapshots in the cloud provider directly. We were thinking about refactoring the controller to use CSI snapshots instead but then we figured that it might be even better to upstream thin in the exetrenal-snapshotter.
Additional context
I'm not sure if this feature would need a KEP but if it does, I can work on this