From 03352a4e7d3209ff3291c9f52b79e3097bb9053d Mon Sep 17 00:00:00 2001 From: Peter Kurfer Date: Wed, 14 Aug 2024 20:08:25 +0200 Subject: [PATCH] fix(cnpg): set namespace for backup --- cnpg/resources/backup.yaml | 1 + cnpg/resources/cluster.yaml | 2 ++ 2 files changed, 3 insertions(+) diff --git a/cnpg/resources/backup.yaml b/cnpg/resources/backup.yaml index 46175a9..883fd04 100644 --- a/cnpg/resources/backup.yaml +++ b/cnpg/resources/backup.yaml @@ -3,6 +3,7 @@ apiVersion: postgresql.cnpg.io/v1 kind: ScheduledBackup metadata: name: daily-backup + namespace: postgres spec: schedule: "0 1 * * *" backupOwnerReference: self diff --git a/cnpg/resources/cluster.yaml b/cnpg/resources/cluster.yaml index 504bd74..5319d0a 100644 --- a/cnpg/resources/cluster.yaml +++ b/cnpg/resources/cluster.yaml @@ -13,6 +13,8 @@ spec: superuser: true createrole: true createdb: true + inherit: true + connectionLimit: -1 storage: size: 10Gi