Report this

What is the reason for this report?

Automatically map DO volumes even if cluster is recreated

Posted on August 22, 2019

Hi.

I’m wondering if is possible to automatically reuse existing DO volumes when we recreate the cluster?

Let say that I have some Volumes already create via CSI and when I delete the cluster, Volumes remains. Now, when I create again the cluster I want to reuse those Volumes exactly how were used before. This means that when a new PVC is created then it should know to map to some Volumes fro DO. Does CSI currently support this type of functionalities?

Thx!



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hi there!

We currently dont support this type of functionality right out of the box but it is possible to accomplish. Maybe not as automatic as you would like but it is possible to reuse pv’s.

https://github.com/digitalocean/csi-digitalocean/blob/master/examples/kubernetes/pod-single-existing-volume/README.md

Regards,

John Kwiatkoski Senior Developer Support Engineer

Well, I did play with that but it seems that I should as well attach volume manually, which is not smth that I don’t want todo in a cluster as this depends on which node does have more disk.

Do you have any plans to add such functionality in the future? Doesn’t this seem simple to implement?

Thx!

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.