Bind Mount #2828
Replies: 3 comments
-
Hi @chadddddd , can you check
Replace If kubelet-dir not mounted in csi node, bind path will not work in app container. |
Beta Was this translation helpful? Give feedback.
-
Thank you! Here is the output:
And here are my helm values
The microk8s nodes have a /var/lib/kublet symlink to this kubeletDir. I tried installing jfs with and without this value set and the results are the same. |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
The bind mount does not appear to succeed on my K8S deployment. The mount pod is working, but the storage volume in my app is not bind mounting to the mount pod volume. The bind mount log message from the CSI node pod appears to be successful and there are no errors on the nodes. My kubernetes cluster is a microk8s cluster. I installed bindfs on the nodes thinking that it may be required, but that didn't do the trick. Any thoughts would be greatly appreciated :)
Specifically, I see
juicefs.go:165] BindTarget: binding /jfs/juicefs-pv-yklsss at /var/snap/microk8s/common/var/lib/kubelet/pods/1521f287-94a4-46b7-a943-4867f5267ae3/volumes/kubernetes.io~csi/juicefs-pv/mount
and
node.go:134] NodePublishVolume: mounted juicefs-pv at /var/snap/microk8s/common/var/lib/kubelet/pods/1521f287-94a4-46b7-a943-4867f5267ae3/volumes/kubernetes.io~csi/juicefs-pv/mount with options []
in the csi pod logs. And I see
out.txt
here/var/snap/microk8s/common/var/lib/kubelet/pods/1521f287-94a4-46b7-a943-4867f5267ae3/volumes/kubernetes.io~csi/juicefs-pv/mount
, but I don't seeout.txt
here/jfs/juicefs-pv-yklsss
However, if I create files in
/jfs/juicefs-pv-yklsss
of the mount pod they are saved to my cloud storage and they persist the next time I mount the same juicefs backend.Beta Was this translation helpful? Give feedback.
All reactions