kind: PersistentVolume apiVersion: v1 metadata: name: postgres-pv labels: type: local spec: capacity: storage: 2Gi accessModes: - ReadWriteOnce storageClassName: microk8s-hostpath hostPath: path: /data/postgres-pv