Skip to content
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

Is it possible to connect multiple PV/PVC to the same bucket prefix? #244

Closed
schlichtanders opened this issue Aug 30, 2024 · 3 comments
Closed
Labels
question Further information is requested

Comments

@schlichtanders
Copy link

schlichtanders commented Aug 30, 2024

Hi there, as kubernetes only allows sharing of PV/PVCs within the same namespace, but we would like to access the same storage from different namespaces, I was wondering whether mountpoint-s3-csi-driver supports this.

Concretely to have several PV/PVC combinations for different namespaces which still access the same s3 data. I couldn't find anything in the documentation.

/triage support

@schlichtanders
Copy link
Author

schlichtanders commented Aug 30, 2024

I just realized there is already the possibility to access volums accross namespaces https://kubernetes.io/docs/concepts/storage/persistent-volumes/#cross-namespace-data-sources

The documentation mentions that the CrossNamespaceVolumeDataSource feature gate must also be enabled for the csi-provisioner. Does someone know how to do it for mountpoint-s3-csi-driver?

Sorry for the confusion - this featuregate apparently only initializes another pvc in a another namespace. It is not reusing the same pvc from another namespace... confused myself. Hence the original question is still the only solution today it seems - to have multiple PV/PVCs for each namespace

@unexge unexge added the question Further information is requested label Sep 2, 2024
@muddyfish
Copy link
Contributor

You're correct - currently it's not possible to use a single PVC across multiple namespaces, or a single PV in multiple PVCs.

If you configure the same S3 bucket and path in multiple volumes, you will have the same view of the data. I understand this is not ideal however. I'd recommend adding a 👍 to this feature request: #125

@schlichtanders
Copy link
Author

it is a limitation of kubernetes, so yeah, nothing to do for mountpoint-s3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants