apiVersion: v1 kind: PersistentVolume metadata: name: -pv spec: capacity: storage: 100Mi volumeMode: Filesystem accessModes: - ReadWriteOnce persistentVolumeReclaimPolicy: Retain storageClassName: local: path: /path/to/data/on/host nodeAffinity: required: nodeSelectorTerms: - matchExpressions: - key: kubernetes.io/hostname operator: In values: - --- apiVersion: v1 kind: PersistentVolumeClaim metadata: name: -pvc spec: storageClassName: accessModes: - ReadWriteOnce resources: requests: storage: 100Mi