apiVersion: v1
kind: PersistentVolume
metadata:
  labels:
    type: local
  name: local-volume
spec:
  accessModes:
  - ReadWriteOnce
  capacity:
    storage: 10Gi
  local:
    path: /mnt/local
  nodeAffinity:
    required:
      nodeSelectorTerms:
      - matchExpressions:
        - key: kubernetes.io/hostname
          operator: In
          values:
          - minikube
  persistentVolumeReclaimPolicy: Delete
  storageClassName: local-storage
