local-path-provisioner
local-path-provisioner copied to clipboard
Where can I see my files on node ?
PVC created by local-path successfully.
PV shows path on the Node is /opt/local-path-provisioner/pvc-b881b372-6543-4cd1-88bc-e7f01c61acf1_test_dsfhsdfhsdfhsdfh
First I execute shell in the Pod, and make a new file to the folder of PVC.
And then I step into the Node, execute:
cd /opt/local-path-provisioner/pvc-b881b372-6543-4cd1-88bc-e7f01c61acf1_test_dsfhsdfhsdfhsdfh
ls -al
Expect can see the file created in Pod, but actually see no files. But the PVC is really worked, even reboot the Node, restart the Pod, the PVC is worked, the files are keeped.
What I used is the default deploy config. So what is the actual storage path of these files on Node?
Are you using k3s? In that case, you can check /var/lib/rancher/k3s/storage/
too.