In Specific Node
core@alex-k8s-2 ~ $ vi /mnt/data2/index.html
core@alex-k8s-2 ~ $ cat /mnt/data2/index.html
'Hello from Kubernetes Local storage'
PV,PVC,Status
core@alex-k8s-1 ~ $ kcl get pv
NAME CAPACITY ACCESS MODES RECLAIM POLICY STATUS CLAIM STORAGECLASS REASON AGE
pv-specific-node 1Gi RWO Retain Bound default/pvc-specific-node local-storage 9m28s
core@alex-k8s-1 ~ $ kcl get pvc
NAME STATUS VOLUME CAPACITY ACCESS MODES STORAGECLASS AGE
pvc-specific-node Bound pv-specific-node 1Gi RWO local-storage 6m53s
core@alex-k8s-1 ~ $ kcl get pods
NAME READY STATUS RESTARTS AGE
task-pv-pod 1/1 Running 0 12s
core@alex-k8s-1 ~ $ kcl exec -it task-pv-pod -- /bin/bash
root@task-pv-pod:/# ls /usr/share/nginx/html
**index.html** test.file