-
Notifications
You must be signed in to change notification settings - Fork 553
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
mount static cephFS pvc via fuse inside Kubernetes pod with fsName="" #4311
Comments
Is it possible to set parameters such that option |
The default is to mount it through the kernel. Do you want to mount it through fuse through pv? |
I want to be able to use it both ways. One problem is that options --client_mds_namespace is added implicitly and i don't know what value i should pass there. I have only settings that allow me mount ceph path via cephfs(example https://github.com/kubernetes/examples/tree/master/volumes/cephfs/): username, secret, monitors, path. Ceph-csi plugin requires more knowledge about ceph volume then i may have. As an example I don't know what to put as value for fsName (i should probably ask a team that support ceph about that). My use case seems to more suitable for cephfs (deprecated). Having configuration options for cepfs seem not enough for using ceph-csi plugin. |
@apetrunev what is the output of |
I use unprivileged roles for myself and for accessing ceph dirs within kubernetes pods. These roles alose have access only to certain dirs. |
@apetrunev that should be fine, can you use the output of |
consider fsName as optional for static volume as it is not required to be set duing mount operation with fuse and kernel client. fixes: ceph#4311 Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
consider fsName optional for static volume as it is not required to be set during mount operation with fuse and kernel client. fixes: ceph#4311 Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
@apetrunev i made #4372 to see if that is enough |
unfortunately i cannot access them. I got the fsName but did not test how it works because my point here is to move smoothly from kuber cephfs to ceph-csi with the same settings. |
looks nice, that way --client_mds_namespace is not used. It seems that is enough for my case. |
consider fsName optional for static volume as it is not required to be set during mount operation with fuse and kernel client. fixes: #4311 Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
Hi! i need a little help. I cannot figure out how to mount cephFS static pvc with empty
fsName
paramteter. I have a volume on a ceph cluster and directory i want to mount viaceph-fuse
. It works fine on linux cli but i cannot mount the dir inside a pod. It looks like it is ok to have fsName defined as an empty string.Example
This works fine on cli:
PV manifest:
When i mount this PV inside a pod i get error:
Environment details
ceph-csi chart version 3.8.1 (3.9.0)
kubernetes version: 1.26.6
The text was updated successfully, but these errors were encountered: