From 664437dc258a9f775c9824edcefe4d479e5f8221 Mon Sep 17 00:00:00 2001 From: Amit Sagtani Date: Tue, 21 Feb 2023 12:24:57 +0530 Subject: [PATCH] add postgres chart example values --- values/postgresql/prod-values.example.yaml | 15 ++++++++++++ values/postgresql/pv_pvc.yaml | 28 ++++++++++++++++++++++ 2 files changed, 43 insertions(+) create mode 100644 values/postgresql/prod-values.example.yaml create mode 100644 values/postgresql/pv_pvc.yaml diff --git a/values/postgresql/prod-values.example.yaml b/values/postgresql/prod-values.example.yaml new file mode 100644 index 000000000..5fdf4c2f3 --- /dev/null +++ b/values/postgresql/prod-values.example.yaml @@ -0,0 +1,15 @@ +postgresql: + fullnameOverride: postgresql + ####### Uncomment and set these creds. +# auth: +# postgresPassword: +# username: +# password: +# database: + + primary: + persistence: + # Create a pv and pvc for storing data. Refer to pv_pvc.yaml + existingClaim: postgresql-pv-claim + volumePermissions: + enabled: true diff --git a/values/postgresql/pv_pvc.yaml b/values/postgresql/pv_pvc.yaml new file mode 100644 index 000000000..4be6471c1 --- /dev/null +++ b/values/postgresql/pv_pvc.yaml @@ -0,0 +1,28 @@ +apiVersion: v1 +kind: PersistentVolume +metadata: + name: postgresql-pv + labels: + type: local +spec: + storageClassName: manual + capacity: + storage: 10Gi + accessModes: + - ReadWriteOnce + hostPath: + path: "/mnt/data" + +--- + +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + name: postgresql-pv-claim +spec: + storageClassName: manual + accessModes: + - ReadWriteOnce + resources: + requests: + storage: 10Gi