apiVersion: v1
kind: PersistentVolumeClaim
metadata:
  labels:
    app: postgres
  name: postgres-pvc
  namespace: postgres
spec:
  storageClassName: ${storageclass}
  accessModes:
  - ReadWriteOnce
  resources:
    requests:
      storage: 50Gi
  selector: 
    matchLabels:
      role: postgres-data
