Why arent objects 'freed' when deleting content of a PVC? - Ceph RBD CSI #4618
-
Hi everyone, i am fairly new to Ceph / CSI drivers. I have deployed a Ceph Cluster with RBD CSI driver via helm/rook, created a PVC and a demo POD. It works as intended, but there is one thing I don't understand:
(I'm just wondering, since the remaining objects from the already deleted large file are counted towards the total quota of available storage of the Ceph cluster)
Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
@mame-leadec that's because that is expected behaviour with RBD. we do have some automation for that to create the reclaimspace or you need to set the |
Beta Was this translation helpful? Give feedback.
@mame-leadec that's because that is expected behaviour with RBD. we do have some automation for that to create the reclaimspace or you need to set the
discard
option in storageclass. rook/rook#3832 and https://github.com/csi-addons/kubernetes-csi-addons/blob/v0.5.0/docs/reclaimspace.md#reclaimspacejob