https://rancher.com/ logo
#rancher-desktop
Title
# rancher-desktop
a

adamant-kite-43734

09/22/2022, 3:57 AM
This message was deleted.
h

high-toothbrush-33213

09/22/2022, 4:19 AM
I'm trying to use a local path as my PV
Copy code
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?
25 Views