-
Notifications
You must be signed in to change notification settings - Fork 15
/
postgresql.dev4devs.com_v1alpha1_backup_cr.yaml
90 lines (74 loc) · 3.73 KB
/
postgresql.dev4devs.com_v1alpha1_backup_cr.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
apiVersion: postgresql.dev4devs.com/v1alpha1
kind: Backup
metadata:
name: backup
spec:
# ---------------------------------
# ## Backup Container
# ----------------------------
# See https://github.com/integr8ly/backup-container-image
# ---------------------------------
# ---------------------------------
# IMPORTANT: In this CR you will find an example of all options and possible configurations.
# However, by default values are applied by the operator if values are not specified below.
# ---------------------------------
# ---------------------------------
# ## Default Setup
# ---------------------------------
# This spec allow you setup the backup frequency
schedule: "0 0 * * *" # daily at 00:00
# The following specs are required to send the data to your AWS S3 storage
awsS3BucketName: "example-awsS3BucketName"
awsAccessKeyId: "example-awsAccessKeyId"
awsSecretAccessKey: "example-awsSecretAccessKey"
# ---------------------------------
# ## Customizations Options
# ---------------------------------
# Change the following spec if you change the name of the Database CR
# databaseCRName: "database"
# This spec allow you change the <image>:<tag> used to perform the backup
# ---------------------------------
# image: "quay.io/integreatly/backup-container:1.0.8"
# This spec allow you change the "version" of the database which will be installed
# used to perform the backup(It needs be the same used by the Database CR)
# ---------------------------------
# databaseVersion: "9.6"
# ---------------------------------
# TIP: Following the steps to get the databaseVersion
# ---------------------------------
# 1. Go to the database pod terminal
# 2. Run the command psql as follows.
# //sh-4.2$ psql
# //psql (9.6.10)
# IMPORTANT: Just the first 2 digits should be used.
# ---------------------------------
# The following information is optional and will be used to tag the data in the AWS bucket
# ---------------------------------
# productName: "postgresql"
# The following attribute allows you tell for the operator that it should use an pre-existing secret
# with the AWS data info in the format required.
# See here the template: https://github.com/integr8ly/backup-container-image/blob/master/templates/openshift/sample-config/s3-secret.yaml
# ---------------------------------
# NOTE: If the namespace be not informed then the operator will try to find it in the same namespace where it is applied
# ---------------------------------
# awsSecretName: "example-awsCredentialsSecretName"
# awsSecretNamespace: "example-awsSecretNamespace"
# ---------------------------------
# EncryptKey (Optional Setup)
# ----------------------------
# The following attribute allows you tell for the operator that it should use an pre-existing secret
# with the encrypt data info in the format required.
# See here the template: https://github.com/integr8ly/backup-container-image/blob/master/templates/openshift/sample-config/gpg-secret.yaml
# ---------------------------------
# NOTE: If the namespace be not informed then the operator will try to find it in the same namespace where it is applied
# ---------------------------------
# encryptKeySecretName: "example-encryptKeySecretName"
# encryptKeySecretNamespace: "example-encryptKeySecretNamespace"
# OR
# Add the encryption details in order to allow the operator create the secret for you
# See here how to create this key : https://help.github.com/en/articles/generating-a-new-gpg-key
# base64 encoded public opengpg cert
# ---------------------------------
# gpgPublicKey: "example-gpgPublicKey"
# gpgEmail: "email@example.com"
# gpgTrustModel: "always"