Interlegis Public Rancher Charts for Kubernetes
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.

37 lines
1.3 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:
instanceSidecarConfiguration:
env:
- name: AWS_REQUEST_CHECKSUM_CALCULATION
value: when_required
- name: AWS_RESPONSE_CHECKSUM_VALIDATION
value: when_required
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 }}