Persistent volume local path- unable to set windows path

Hi, I am unable to set windows path in kubernetes PV local path. please assist.
apiVersion: v1

kind: PersistentVolume

metadata:

name: test-pf-profile-volume

spec:

accessModes:

  • ReadOnlyMany

capacity:

storage: 10Gi

local:

path: "C:/Users/anurag/Documents/lab03"

nodeAffinity:

required:

  nodeSelectorTerms:

  - matchExpressions:

    - key: kubernetes.io/hostname

      operator: In

      values:

      - docker-desktop

storageClassName: local-in-storage

volumeMode: Filesystem

kubernetes version: 1.19.2
using Docker Desktop, windows 10
error:
Events:
Type Reason Age From Message


Warning FailedScheduling 19s default-scheduler 0/1 nodes are available: 1 pod has unbound immediate PersistentVolumeClaims.
Normal Scheduled 19s default-scheduler Successfully assigned default/test-85b7d4985f-qncnv to docker-desktop
Warning FailedMount 3s (x6 over 19s) kubelet, docker-desktop MountVolume.NewMounter initialization failed for volume “test-pf-profile-volume” : path “C:/Users/anurag/Documents/lab03” does not exist

I am not a windows user, but i dont think hyperv underneath will mount the host’s windows file system to the guest vm (i.e. where MicroK8s run).
You might be able to do this using SMB or start an NFS from your windows. Haven’t tried this myself. Link i found on the net https://linuxhint.com/shared_folders_hypver-v_ubuntu_guest/

You may want to look at multipass mount on how to share the in-host directory with the microk8s vm [1, 2].

[1] https://www.techrepublic.com/article/how-to-share-data-between-host-and-vm-with-multipass/
[2] https://discourse.ubuntu.com/t/moving-files-to-instances-on-windows/14853