diff --git a/apps/lldap/base/cluster-restore.yaml b/apps/lldap/base/cluster-restore.yaml new file mode 100644 index 0000000..b4858c6 --- /dev/null +++ b/apps/lldap/base/cluster-restore.yaml @@ -0,0 +1,16 @@ +apiVersion: postgresql.cnpg.io/v1 +kind: Cluster +metadata: + name: lldap-db +spec: + bootstrap: + recovery: + source: source + externalClusters: + - name: source + plugin: + name: barman-cloud.cloudnative-pg.io + parameters: + barmanObjectName: garage-store + serverName: lldap-db + plugins: [] diff --git a/apps/lldap/base/kustomization.yaml b/apps/lldap/base/kustomization.yaml index 82ddaab..5843e88 100644 --- a/apps/lldap/base/kustomization.yaml +++ b/apps/lldap/base/kustomization.yaml @@ -9,3 +9,8 @@ resources: - http-route.yaml - secret-s3-garage.yaml - object-store.yaml + +patches: + - path: cluster-restore.yaml + target: + kind: Cluster diff --git a/apps/lldap/base/object-store.yaml b/apps/lldap/base/object-store.yaml index 9b4e804..3f2bbd0 100644 --- a/apps/lldap/base/object-store.yaml +++ b/apps/lldap/base/object-store.yaml @@ -5,7 +5,7 @@ metadata: namespace: lldap spec: configuration: - destinationPath: s3://cnpg-backup/lldap-testing + destinationPath: s3://cnpg-backup s3Credentials: accessKeyId: name: s3-garage