Kuberentes Volume to upload and download files with multinodes

5/18/2017

i’ve a question about the Volumes (I use GoogleCloud).

Reading the doc if I specify ReadWriteOnce (i use VolumeClaim) it seems that only one node can have the writing right. And the option with Multi is not yet supported by cloud vendors.

Now, i’ve the case where I’ve to serve files that people upload. The upload is chunk based upload, this means that it can be done in parallel. Having more than one node that can serve the purpose of receiving the uploaded chunk, i can have the need that more than on node has the writing right on the volume. Each node stores chunk and one node, in the end, recompose it and create a single file.

What’s the right approach to do that? What should I use?

(should I user cloud storage as a single point for read/write files?)

-- EsseTi
google-cloud-platform
google-cloud-storage
kubernetes

1 Answer

5/25/2017

I think you might need to change the volume backend which supports ReadWriteMany. The Volume Plugin that supports ReadWriteMany are AzureFile, CephFS, GlusterFS, NFS, etc. Find more about it here.

And then for provisioning that you can use the above listed storage on top of GCE.

-- surajd
Source: StackOverflow