File tree Expand file tree Collapse file tree 4 files changed +60
-0
lines changed Expand file tree Collapse file tree 4 files changed +60
-0
lines changed Original file line number Diff line number Diff line change
1
+ { {/* Allow for S3 secret information to be stored in a Secret */} }
2
+ { {- define " postgres.s3" } }
3
+ [global]
4
+ { {- if .Values.s3 } }
5
+ { {- if .Values.s3.key } }
6
+ repo1-s3-key={ { .Values.s3.key } }
7
+ { {- end } }
8
+ { {- if .Values.s3.keySecret } }
9
+ repo1-s3-key-secret={ { .Values.s3.keySecret } }
10
+ { {- end } }
11
+ { {- if .Values.s3.encryptionPassphrase } }
12
+ repo1-cipher-pass={ { .Values.s3.encryptionPassphrase } }
13
+ { {- end } }
14
+ { {- end } }
15
+ { { end } }
Original file line number Diff line number Diff line change
1
+ {{- if .Values.s3 }}
2
+ apiVersion : v1
3
+ kind : Secret
4
+ metadata :
5
+ name : {{ default .Release.Name .Values.name }}-pgbackrest-secret
6
+ type : Opaque
7
+ data :
8
+ s3.conf : |-
9
+ {{ include "postgres.s3" . | b64enc }}
10
+ {{- end }}
Original file line number Diff line number Diff line change 40
40
{{- end }}
41
41
{{- if .Values.pgBackRestConfig }}
42
42
{{ toYaml .Values.pgBackRestConfig | indent 6 }}
43
+ {{- else if .Values.s3 }}
44
+ configuration :
45
+ - secret :
46
+ name : {{ default .Release.Name .Values.name }}-pgbackrest-secret
47
+ global :
48
+ repo1-path : /pgbackrest/{{ .Release.Namespace }}/{{ default .Release.Name .Values.name }}/repo1
49
+ {{- if .Values.s3.encryptionPassphrase }}
50
+ repo1-cipher-type : aes-256-cbc
51
+ {{- end }}
52
+ repos :
53
+ - name : repo1
54
+ s3 :
55
+ bucket : {{ .Values.s3.bucket | quote }}
56
+ endpoint : {{ .Values.s3.endpoint | quote }}
57
+ region : {{ .Values.s3.region | quote }}
43
58
{{- else }}
44
59
repos :
45
60
- name : repo1
Original file line number Diff line number Diff line change 169
169
# overridden by "pgBackRestConfig", if set. Defaults to the value velow.
170
170
# backupsSize: 1Gi
171
171
172
+ # s3 allows for AWS S3 or an S3 compatible storage system to be used for
173
+ # backups. This allows for a quick setup with S3; if you need more advanced
174
+ # setup, use pgBackRestConfig.
175
+ # s3:
176
+ # # bucket specifies the S3 bucket to use,
177
+ # bucket: ""
178
+ # # endpoint specifies the S3 endpoint to use.
179
+ # endpoint: ""
180
+ # # region specifies the S3 region to use. If your S3 storage system does not
181
+ # # use "region", fill this in with a random vaule.
182
+ # region: ""
183
+ # # key is the S3 key. This is stored in a Secret.
184
+ # key: ""
185
+ # # keySecret is the S3 key secret. This is tored in a Secret.
186
+ # keySecret: ""
187
+ # # encryptionPassphrase is an optional parameter to enable encrypted backups
188
+ # # with pgBackRest. This is encrypted by pgBackRest and does not use S3's
189
+ # # built-in encrpytion system.
190
+ # encryptionPassphrase: ""
191
+
172
192
# pgBackRestConfig allows for the configuration of every pgBackRest option
173
193
# except for "image", which is set by "pgBackRest".
174
194
# pgBackRestConfig: {}
You can’t perform that action at this time.
0 commit comments