-
Notifications
You must be signed in to change notification settings - Fork 462
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Why the provisioner only support ReadWriteOnce #70
Comments
I am not sure I get what do you mean... PV can only be used by the local node, and that's one node. |
Hmm, I think I misunderstood goals of this project... |
@philpep Yeah, the pod would be scheduled to the volume. But from the volume's perspective, it's still only capable of single node read/write. The pods on the other nodes cannot read/write the volume, so the volume is still RWO. Though if you have multiple pods on the same node, they can read/write the volume at the same time. RWO is only about the node, not pods. |
Ok thanks for the explanations @yasker ! |
@yasker I also hit this limitation. My use case is that I am buiding a platform that could be installed both as single node k8s and multi node. For single node I am using a local storage provisioned, for multi node I'm leveraging rook. Now, I would like that for the apps deployed on top, the underlying storage provider to be transparent. Some of the apps would need a storage class for shared volumes. I would like to use the same SC name, but in single node to be served by local provisioner, in multinode to be served by rook ceph. But the shared volumes requires RWX. So I cannot use this provisioner for local volumes. Is there a real need for this restriction ? |
I hit this exact limitation just lately when I was testing ReadWriteMany on kind. I know that being on single node RWX isn't need but does it causes any side effects hence its a restriction? |
Yes, it would be nice to have this possibility. I am running single node anyway and want to do volume backups using CronJob resource, I don't want to run backup on the host itself. |
The path can be mounted on every node via NFS/Luster/GPFS/BeeGFS or other distributed FS, so I think this limitation should be tunable. Make it sense to make this behavior configurable? |
Is it possible to support RWX , for example, as an option? In my case,pv is created by app with RWX mode,which is required by multi node env |
I have a local hostpath driver as part of my project here: https://github.com/democratic-csi/democratic-csi It does allow rwx but implicitly pins the volume through topology should crazy scenarios come up (ie: it’s safe to use in multi-node clusters as well). It also supports snapshots and clones (crudely via rsync). |
Why the provisioner only support ReadWriteOnce pvc and not ReadOnlyMany/ReadWriteMany.
Since it's just a node-local directory, there's no problem with having multiple writer/readers as long as the application support this.
The text was updated successfully, but these errors were encountered: