https://rancher.com/ logo
Title
h

high-toothbrush-33213

09/22/2022, 3:57 AM
I'm trying to use the
local-path
storage class with WSL, but I'm consistently told
MountVolume.NewMounter initialization failed for volume "myvolume" : path "/some/path/somewhere" does not exist
I'm trying to use a local path as my PV
apiVersion: v1
kind: PersistentVolume
metadata:
  name: LocalPV
spec:
  accessModes:
  - ReadWriteOnce
  capacity:
    storage: 20Gi
  nodeAffinity:
    required:
      nodeSelectorTerms:
      - matchExpressions:
        - key: <http://kubernetes.io/hostname|kubernetes.io/hostname>
          operator: In
          values:
          - masternode
  persistentVolumeReclaimPolicy: Delete
  storageClassName: local-path
  local:
    path: /some/path/somewhere
  volumeMode: Filesystem
Am I missing something for this to function with WSL?