Skip to content

Commit 32c9070

Browse files
committed
feat(release): Add backup and object store configurations for PostgreSQL cluster
1 parent f9e69ce commit 32c9070

File tree

4 files changed

+31
-30
lines changed

4 files changed

+31
-30
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
apiVersion: postgresql.cnpg.io/v1
2+
kind: Backup
3+
metadata:
4+
name: backup-to-minio
5+
namespace: cnpg-system
6+
spec:
7+
cluster:
8+
name: feather-core-cluster-pg
9+
method: plugin
10+
pluginConfiguration:
11+
name: barman-cloud.cloudnative-pg.io

infrastructure/clusters/feather-core/configs/postgresql/cluster.yaml

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -42,33 +42,3 @@ spec:
4242
parameters:
4343
barmanObjectName: s3-store
4444
---
45-
apiVersion: barmancloud.cnpg.io/v1
46-
kind: ObjectStore
47-
metadata:
48-
name: s3-store
49-
spec:
50-
configuration:
51-
destinationPath: s3://feather-core-cluster-pg-backup/backups
52-
# MariaDB uses endpoint without scheme; CNPG expects full URL
53-
endpointURL: http://s3.onelite.feather:7480
54-
s3Credentials:
55-
accessKeyId:
56-
name: cnpg-backup
57-
key: access-key-id
58-
secretAccessKey:
59-
name: cnpg-backup
60-
key: secret-access-key
61-
wal:
62-
compression: gzip
63-
---
64-
apiVersion: postgresql.cnpg.io/v1
65-
kind: Backup
66-
metadata:
67-
name: backup-to-minio
68-
namespace: cnpg-system
69-
spec:
70-
cluster:
71-
name: feather-core-cluster-pg
72-
method: plugin
73-
pluginConfiguration:
74-
name: barman-cloud.cloudnative-pg.io

infrastructure/clusters/feather-core/configs/postgresql/kustomization.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ generatorOptions:
55
disableNameSuffixHash: true
66
resources:
77
- cluster.yaml
8+
- object-store.yaml
9+
- backup.yaml
810
- pooler-rw.yaml
911
- pooler-ro.yaml
1012
- database/harbor.yaml
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
apiVersion: barmancloud.cnpg.io/v1
2+
kind: ObjectStore
3+
metadata:
4+
name: s3-store
5+
spec:
6+
configuration:
7+
destinationPath: s3://feather-core-cluster-pg-backup/backups
8+
# MariaDB uses endpoint without scheme; CNPG expects full URL
9+
endpointURL: http://s3.onelite.feather:7480
10+
s3Credentials:
11+
accessKeyId:
12+
name: cnpg-backup
13+
key: access-key-id
14+
secretAccessKey:
15+
name: cnpg-backup
16+
key: secret-access-key
17+
wal:
18+
compression: gzip

0 commit comments

Comments
 (0)