pv-postgres.yaml 347 B

12345678910111213141516
  1. {{- if and .Values.hue.database.persist .Values.hue.database.create -}}
  2. apiVersion: v1
  3. kind: PersistentVolume
  4. metadata:
  5. name: postgres-pv
  6. labels:
  7. type: local
  8. spec:
  9. storageClassName: {{ .Values.hue.database.storageName }}
  10. capacity:
  11. storage: 2Gi
  12. accessModes:
  13. - ReadWriteOnce
  14. hostPath:
  15. path: /data/postgres-pv
  16. {{- end -}}