pv-postgres.yaml 242 B

1234567891011121314
  1. kind: PersistentVolume
  2. apiVersion: v1
  3. metadata:
  4. name: postgres-pv
  5. labels:
  6. type: local
  7. spec:
  8. capacity:
  9. storage: 2Gi
  10. accessModes:
  11. - ReadWriteOnce
  12. storageClassName: microk8s-hostpath
  13. hostPath:
  14. path: /data/postgres-pv