helmfile.yaml
1.86 KB
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
bases:
- ../common/environments.yaml
repositories:
- name: postgres-operator-charts
url: https://opensource.zalando.com/postgres-operator/charts/postgres-operator
---
releases:
- name: postgres-extra-config
namespace: {{ .Values.namespace }}
chart: charts/extra-config
strategicMergePatches:
- apiVersion: v1
kind: ConfigMap
metadata:
name: postgres-extra-config
namespace: {{ .Values.namespace }}
data:
USE_WALE_BACKUP: "true"
AWS_ACCESS_KEY_ID: {{ .Values.backup.s3.access_key_id }}
WALE_S3_ENDPOINT: {{ .Values.backup.s3.wale_endpoint }}
- apiVersion: v1
kind: Secret
metadata:
name: postgres-extra-config
namespace: {{ .Values.namespace }}
stringData:
AWS_SECRET_ACCESS_KEY: {{ .Values.backup.s3.secret_access_key }}
- name: postgres-operator
namespace: {{ .Values.namespace }}
chart: postgres-operator-charts/postgres-operator
disableValidation: true
values:
- configLogicalBackup:
logical_backup_provider: {{ .Values.backup.provider }}
logical_backup_s3_access_key_id: {{ .Values.backup.s3.access_key_id }}
logical_backup_s3_bucket: {{ .Values.backup.s3.bucket }}
logical_backup_s3_region: {{ .Values.backup.s3.region }}
logical_backup_s3_endpoint: {{ .Values.backup.s3.endpoint }}
logical_backup_s3_secret_access_key: {{ .Values.backup.s3.secret_access_key }}
logical_backup_s3_sse: {{ .Values.backup.s3.sse }}
configAwsOrGcp:
aws_region: {{ .Values.backup.s3.region }}
wal_s3_bucket: {{ .Values.backup.s3.bucket }}
configKubernetes:
pod_environment_configmap: {{ .Values.namespace }}/postgres-extra-config
pod_environment_secret: {{ .Values.namespace }}/postgres-extra-config