coreos / torus

Torus Distributed Storage
https://coreos.com/blog/torus-distributed-storage-by-coreos.html
Apache License 2.0
1.77k stars 172 forks source link

Support volumes mounted multiple times as read-only #234

Open robszumski opened 8 years ago

robszumski commented 8 years ago

It'd be great to support the ability to mount a single volume into multiple Kubernetes pods as read-only.

Possible use-cases:

rimusz commented 8 years ago

+1

robszumski commented 8 years ago

@rimusz Can you expand on what your use-case is for this?

rimusz commented 8 years ago

there are many kind of statefull Apps which need to share the same files: e.g. Wordpress setup with Management Pod to make updates and the rest of Pods just read the shared files as read only

alekssaul commented 8 years ago

I believe JIRA enterprise in cluster setup also requires this.

barakmich commented 8 years ago

Yeah, let's do it. This turns the virtual Mutex in block/{metadata,etcd}.go into a RWMutex.

aleksijohansson commented 8 years ago

It seems this is not yet implemented even though v0.1.2 is out? Would be super important feature also in web applications like Drupal although the ultimate goal would be this https://github.com/coreos/torus/issues/235