File tree Expand file tree Collapse file tree 9 files changed +114
-26
lines changed
Expand file tree Collapse file tree 9 files changed +114
-26
lines changed Original file line number Diff line number Diff line change 22apiVersion : postgresql.cnpg.io/v1
33kind : Backup
44metadata :
5- name : backup-example
5+ name : backup-sample
66spec :
77 method : plugin
88 pluginConfiguration :
99 name : pgbackrest.dalibo.com
1010 cluster :
11- name : cluster-demo
11+ name : cluster-sample
Original file line number Diff line number Diff line change 11---
2- apiVersion : v1
3- kind : Secret
4- metadata :
5- name : minio
6- type : Opaque
7- stringData :
8- ACCESS_KEY_ID : minioKey
9- ACCESS_SECRET_KEY : minioKey
10- ENCRYPTION_PASS : 3nCryptI0nk3y
11- ---
122apiVersion : postgresql.cnpg.io/v1
133kind : Cluster
144metadata :
15- name : cluster-demo
5+ name : cluster-sample
166spec :
177 # set to Never, because we use kind and image should be loaded on
188 # the Kubernetes cluster and not pulled from an external registry.
Original file line number Diff line number Diff line change 1+ ---
2+ apiVersion : postgresql.cnpg.io/v1
3+ kind : Cluster
4+ metadata :
5+ name : cluster-multi-repositories
6+ spec :
7+ # set to Never, because we use kind and image should be loaded on
8+ # the Kubernetes cluster and not pulled from an external registry.
9+ imagePullPolicy : IfNotPresent
10+ instances : 1
11+ plugins :
12+ - name : pgbackrest.dalibo.com
13+ enabled : true
14+ isWALArchiver : true
15+ parameters :
16+ stanzaRef : stanza-multi-repositories
17+ storage :
18+ size : 1Gi
Original file line number Diff line number Diff line change 22apiVersion : postgresql.cnpg.io/v1
33kind : Cluster
44metadata :
5- name : cluster-demo- replica
5+ name : cluster-replica
66spec :
77 imagePullPolicy : IfNotPresent
88 instances : 2
Original file line number Diff line number Diff line change 11---
2- apiVersion : v1
3- kind : Secret
4- metadata :
5- name : minio
6- type : Opaque
7- stringData :
8- ACCESS_KEY_ID : minioKey
9- ACCESS_SECRET_KEY : minioKey
10- ---
112apiVersion : postgresql.cnpg.io/v1
123kind : Cluster
134metadata :
14- name : cluster-demo
5+ name : cluster-restored
156spec :
167 # set to Never, because we use kind and image should be loaded on
178 # the Kubernetes cluster and not pulled from an external registry.
Original file line number Diff line number Diff line change 22apiVersion : postgresql.cnpg.io/v1
33kind : ScheduledBackup
44metadata :
5- name : backup-example
5+ name : scheduled- backup-example
66spec :
77 method : plugin
88 pluginConfiguration :
99 name : pgbackrest.dalibo.com
1010 cluster :
11- name : cluster-demo
11+ name : cluster-sample
1212 schedule : " 0 15 * * * *"
Original file line number Diff line number Diff line change 1+ ---
2+ apiVersion : v1
3+ kind : Secret
4+ metadata :
5+ name : minio
6+ type : Opaque
7+ stringData :
8+ ACCESS_KEY_ID : minioadmin
9+ ACCESS_SECRET_KEY : minioadmin
10+ ENCRYPTION_PASS : 3nCryptI0nk3y
11+
Original file line number Diff line number Diff line change 1+ ---
2+ apiVersion : pgbackrest.dalibo.com/v1
3+ kind : Stanza
4+ metadata :
5+ name : stanza-sample
6+ spec :
7+ stanzaConfiguration :
8+ name : main
9+ s3Repositories :
10+ - bucket : bucket-01
11+ endpoint : https://172.18.0.2:9000
12+ region : fr-par
13+ repoPath : /repo-01
14+ uriStyle : path
15+ verifyTLS : false
16+ retentionPolicy :
17+ full : 7
18+ fullType : count
19+ diff : 14
20+ archive : 2
21+ archiveType : full
22+ history : 30
23+ secretRef :
24+ accessKeyId :
25+ name : minio
26+ key : ACCESS_KEY_ID
27+ secretAccessKey :
28+ name : minio
29+ key : ACCESS_SECRET_KEY
Original file line number Diff line number Diff line change 1+ ---
2+ apiVersion : pgbackrest.dalibo.com/v1
3+ kind : Stanza
4+ metadata :
5+ name : stanza-multi-repositories
6+ spec :
7+ stanzaConfiguration :
8+ name : main
9+ s3Repositories :
10+ - bucket : bucket-01
11+ endpoint : https://172.18.0.2:9000
12+ region : fr-par
13+ repoPath : /repo-01
14+ uriStyle : path
15+ verifyTLS : false
16+ retentionPolicy :
17+ full : 7
18+ fullType : count
19+ diff : 14
20+ archive : 2
21+ archiveType : full
22+ history : 30
23+ secretRef :
24+ accessKeyId :
25+ name : minio
26+ key : ACCESS_KEY_ID
27+ secretAccessKey :
28+ name : minio
29+ key : ACCESS_SECRET_KEY
30+ - bucket : bucket-02
31+ endpoint : https://172.18.0.2:9000
32+ region : fr-par
33+ repoPath : /repo-02
34+ uriStyle : path
35+ verifyTLS : false
36+ retentionPolicy :
37+ full : 2
38+ fullType : count
39+ diff : 7
40+ archive : 1
41+ archiveType : full
42+ history : 30
43+ secretRef :
44+ accessKeyId :
45+ name : minio
46+ key : ACCESS_KEY_ID
47+ secretAccessKey :
48+ name : minio
49+ key : ACCESS_SECRET_KEY
You can’t perform that action at this time.
0 commit comments