-
Notifications
You must be signed in to change notification settings - Fork 260
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
PVC volume appears to mount correctly in pod but writes to mountpoint inside the pod go to the nodes local filesystem #762
Comments
seems your kubelet dir is not under /var/lib/kubelet, you need to specify |
That turned out to be the issue. Thankyou. Using helm rather than local installing and setting kubeletDir fixed it. Is it worth raising an issue for this situation to be flagged up ? - the current logging produced by the driver appears to imply the mount succeeded, whereas a message regarding the reuqirement to set kubeletDir , or indicating there is an issue with kubelet roots location would have been very helpful. |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten |
What happened:
A pvc used as a volume mount inside a test pod appears to be correctly mounted per kubelet logs, and csi-nfs-node logs, but writes the to the mountpoint are made to the node's local filesystem under the kubelet/..pod../.../mount directory.
What you expected to happen:
writes are made ultimately on the .../shares/pvc-..../ directory on the machine hosting the nfs shares
How to reproduce it:
create a dynamic pvc, create a simple pod yaml referencing the pvc as a volume mount in a container.
Anything else we need to know?:
kubelet logs on the node hosting the pod show the pvc apparently succeeding?
csi-nfs-node logs on the node appear to show the mount succeeded
Manually making the nfs mount to the node hosting the test pod from the nfs server works as expected.
running 'mount | grep nfs' from inside the csi-nfs-node pod shows the mount as expected.
Environment:
kubectl version
): 1.25.16uname -a
): 4.18.0-553.16.1.el8_10.x86_64The text was updated successfully, but these errors were encountered: