---
apiVersion: v1
kind: PersistentVolume
metadata:
  name: ${NS}-local-pv
spec:
  capacity:
    storage: 5Gi
  accessModes:
  - ReadWriteOnce
  persistentVolumeReclaimPolicy: Retain
  storageClassName: ${NS}-local-storage
  hostPath:
    path: /volumes/${NS}
  nodeAffinity:
    required:
      nodeSelectorTerms:
      - matchExpressions:
        - key: kubernetes.io/hostname
          operator: In
          values:
          - <node_name>
