initial commit
This commit is contained in:
32
odroid/cnpg/examples/cluster-storage-class-with-backup.yaml
Normal file
32
odroid/cnpg/examples/cluster-storage-class-with-backup.yaml
Normal file
@@ -0,0 +1,32 @@
|
||||
apiVersion: postgresql.cnpg.io/v1
|
||||
kind: Cluster
|
||||
metadata:
|
||||
name: pg-backup
|
||||
spec:
|
||||
instances: 3
|
||||
|
||||
# Example of rolling update strategy:
|
||||
# - unsupervised: automated update of the primary once all
|
||||
# replicas have been upgraded (default)
|
||||
# - supervised: requires manual supervision to perform
|
||||
# the switchover of the primary
|
||||
primaryUpdateStrategy: unsupervised
|
||||
|
||||
# Persistent storage configuration
|
||||
storage:
|
||||
storageClass: standard
|
||||
size: 1Gi
|
||||
|
||||
# Backup properties
|
||||
backup:
|
||||
barmanObjectStore:
|
||||
destinationPath: s3://BUCKET_NAME/path/to/folder
|
||||
s3Credentials:
|
||||
accessKeyId:
|
||||
name: aws-creds
|
||||
key: ACCESS_KEY_ID
|
||||
secretAccessKey:
|
||||
name: aws-creds
|
||||
key: ACCESS_SECRET_KEY
|
||||
wal:
|
||||
compression: gzip
|
||||
Reference in New Issue
Block a user