How are you folks loading data into DO hosted persistent volumes? I feel like the only way would be some side-car pod running ssh / rsync?
Since DO persistent volumes are randomly named when attached via a claim, I feel like being able to rapidly reload them is going to be important.
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!
Hi there,
Indeed, for the use-case that you’ve described I would use one of the two approaches:
Sidecar Container with rsync / scp: Like you mentioned, one way to do it is by using a sidecar container within the same Pod. This container can have tools like rsync or scp installed to copy files from a remote source to the local volume shared with the main application container.
Init Containers: Init containers are run before the main application container and can be used to load data into a volume. They could use tools like wget, curl, git, rsync, or scp to fetch the data.
An alternative option is to use a PVC with a block storage, and try to schedule your pods on the node that the PVC has been attached on. This isn’t as portable or scalable as the other solutions, but it might be suitable for some use-cases.
Best,
Bobby
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.