From 39f6f81c26102e2363df9ab4ac651f420009d110 Mon Sep 17 00:00:00 2001 From: Tyler Perkins Date: Sun, 3 Nov 2024 16:21:42 -0500 Subject: [PATCH] Add pv and pvc --- cluster/postgresql/pgsql-pv.yaml | 13 +++++++++++++ cluster/postgresql/pgsql-pvc.yaml | 12 ++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 cluster/postgresql/pgsql-pv.yaml create mode 100644 cluster/postgresql/pgsql-pvc.yaml diff --git a/cluster/postgresql/pgsql-pv.yaml b/cluster/postgresql/pgsql-pv.yaml new file mode 100644 index 0000000..e8b9b9b --- /dev/null +++ b/cluster/postgresql/pgsql-pv.yaml @@ -0,0 +1,13 @@ +apiVersion: v1 +kind: PersistentVolume +metadata: + name: data-postgresql-pv + namespace: postgresql-ns +spec: + capacity: + storage: 20Gi + accessModes: + - ReadWriteMany + nfs: + path: /volume1/tank/database + server: 10.0.3.5 diff --git a/cluster/postgresql/pgsql-pvc.yaml b/cluster/postgresql/pgsql-pvc.yaml new file mode 100644 index 0000000..e6f272d --- /dev/null +++ b/cluster/postgresql/pgsql-pvc.yaml @@ -0,0 +1,12 @@ +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + name: data-postgresql-pvc + namespace: postgresql +spec: + accessModes: + - ReadWriteMany + storageClassName: "" + resources: + requests: + storage: 20Gi