NetApp / trident

Storage orchestrator for containers
Apache License 2.0
762 stars 222 forks source link

how to specify clone method in storage class or storageprofile when using trident as CSI? #908

Open eselvam opened 4 months ago

eselvam commented 4 months ago

Describe the solution you'd like How to specify clone method in storage class or storage profile when using trident csi in Openshift 4.14?

Describe alternatives you've considered Nothing alternative available but we can use virtual to upload the image to Datavolume however it is taking too much of time as we don't have the clone capability defined in storage class nor storage profile.

Additional context NA

wonderland commented 4 months ago

A bit more context might be helpful. I assume this question relates to OpenShift Virtualization? And more specifically to the Containerized Data Import (CDI)?

With Trident, you can set the cloneStrategy to either snapshot or csi-clone. I personally prefer the snapshot approach, using the snapshot as an immutable golden image from which you clone (and easily keeping multiple versions of that golden image in different snapshots).

Trident should be among the "well known storage providers" and automatically detected correctly. But you can always define your own StorageProfile as well (https://docs.openshift.com/container-platform/4.14/virt/storage/virt-configuring-storage-profile.html).

Not sure if that answers your question, if not please provide some additional context :-)

eselvam commented 4 months ago

Thanks. It helps a lot. I am just looking for the cloneStrategy under stroageclass and storage profile.

Kindly close it. Thanks.