diff --git a/namespaces/kustomization.yaml b/namespaces/kustomization.yaml index 829dedd..1973d10 100644 --- a/namespaces/kustomization.yaml +++ b/namespaces/kustomization.yaml @@ -3,3 +3,5 @@ kind: Kustomization resources: - staging.yaml - production.yaml + - staging-postgres.yaml + - production-postgres.yaml diff --git a/namespaces/production-postgres.yaml b/namespaces/production-postgres.yaml new file mode 100644 index 0000000..e196300 --- /dev/null +++ b/namespaces/production-postgres.yaml @@ -0,0 +1,13 @@ +apiVersion: postgresql.cnpg.io/v1 +kind: Cluster +metadata: + name: production-postgres + namespace: production +spec: + instances: 1 + enableSuperuserAccess: false + storage: + storageClass: democratic-nfs + size: 5Gi + monitoring: + enablePodMonitor: true diff --git a/namespaces/staging-postgres.yaml b/namespaces/staging-postgres.yaml new file mode 100644 index 0000000..a19e9f2 --- /dev/null +++ b/namespaces/staging-postgres.yaml @@ -0,0 +1,13 @@ +apiVersion: postgresql.cnpg.io/v1 +kind: Cluster +metadata: + name: staging-postgres + namespace: staging +spec: + instances: 1 + enableSuperuserAccess: false + storage: + storageClass: democratic-nfs + size: 5Gi + monitoring: + enablePodMonitor: true