Closed idealtech-i3dlabs closed 3 years ago
OK, after more research, looks like this is working as intended. Setting reclaimPolicy to Retain doesn't mean the volume will survive its destruction in the Kubernetes cluster and can be reclaimed later. It just means that is will stay available in the storage medium, severing its links with Kubernetes.
Setting reclaimPolicy to Retain in my storageclass (from a MinIO server) under csi-s3 doesn't seem to work, even though mounts appears properly in pods with s3fs.
Every time a new pvc is created, a new pvc-xxx-xxxxx-xxxxxx-xxxxxx object is created in MinIO inside bucket mybucket, which means the data becomes not persistent. (I would think it should pick up the existing pvc instead of generating a new one?)
and storageclass:
Any idea why ?