--- apiVersion: v1 kind: PersistentVolumeClaim # Create PVC metadata: name: postgresql-data-claim # Sets name of PV spec: storageClassName: manual accessModes: - ReadWriteMany # Sets read and write access resources: requests: storage: 10Gi # Sets volume size --- apiVersion: v1 kind: PersistentVolume # Create a PV metadata: name: postgresql-data # Sets PV's name labels: type: local # Sets PV's type to local spec: storageClassName: manual capacity: storage: 10Gi # Sets PV Volume accessModes: - ReadWriteMany hostPath: path: "/data/volume" # Sets the volume's path