You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
1.1 KiB
31 lines
1.1 KiB
{{- if .Values.postgresql.backup.enabled }}
|
|
apiVersion: barmancloud.cnpg.io/v1
|
|
kind: ObjectStore
|
|
metadata:
|
|
name: {{ .Values.postgresql.clusterName }}
|
|
namespace: {{ .Release.Namespace }}
|
|
labels:
|
|
{{- include "caduser.labels" . | nindent 4 }}
|
|
spec:
|
|
configuration:
|
|
destinationPath: {{ .Values.postgresql.backup.destinationPath }}
|
|
endpointURL: {{ .Values.postgresql.backup.s3.endpointURL }}
|
|
s3Credentials:
|
|
accessKeyId:
|
|
name: {{ .Values.postgresql.backup.s3.secretName }}
|
|
key: ACCESS_KEY_ID
|
|
secretAccessKey:
|
|
name: {{ .Values.postgresql.backup.s3.secretName }}
|
|
key: ACCESS_SECRET_KEY
|
|
{{- if .Values.postgresql.backup.s3.region }}
|
|
s3:
|
|
region: {{ .Values.postgresql.backup.s3.region }}
|
|
{{- end }}
|
|
data:
|
|
compression: {{ .Values.postgresql.backup.data.compression }}
|
|
jobs: {{ .Values.postgresql.backup.data.jobs }}
|
|
wal:
|
|
compression: {{ .Values.postgresql.backup.wal.compression }}
|
|
maxParallel: {{ .Values.postgresql.backup.wal.maxParallel }}
|
|
retentionPolicy: {{ .Values.postgresql.backup.retentionPolicy | quote }}
|
|
{{- end }}
|
|
|