@@ -40,63 +40,75 @@ spec:
4040 selfHeal : true
4141
4242 source :
43- repoURL : https://small-hack.github.io/cloudnative-pg-cluster-chart
44- chart : cnpg-cluster
45- targetRevision : 0.5.0
43+ # repoURL: https://small-hack.github.io/cloudnative-pg-cluster-chart
44+ # chart: cnpg-cluster
45+ repoURL : https://cloudnative-pg.github.io/charts
46+ chart : cluster
47+ targetRevision : 0.3.1
4648 helm :
4749 releaseName : forgejo-postgres-cluster
50+ # https://github.com/cloudnative-pg/charts/blob/main/charts/cluster/values.yaml
4851 valuesObject :
52+ type : postgresql
53+
4954 name : forgejo-postgres
5055 instances : 2
5156
52- bootstrap :
57+ cluster :
58+ # annotations for the cluster object
59+ annotations :
60+ cnpg.io/skipEmptyWalArchiveCheck : enabled
61+
62+ # initdb for postgresql in the cluster object
5363 initdb :
5464 database : forgejo
5565 owner : forgejo
5666 secret :
5767 name : forgejo-pgsql-credentials
5868
59- backup :
60- # barman is a utility for backing up postgres to s3
61- barmanObjectStore :
62- destinationPath : " s3://forgejo-postgres"
63- endpointURL : " https://{{ .forgejo_s3_endpoint }}"
64- s3Credentials :
65- accessKeyId :
66- name : s3-postgres-credentials
67- key : " accessKeyId"
68- secretAccessKey :
69- name : s3-postgres-credentials
70- key : " secretAccessKey"
71- wal :
72- compression : gzip
73- maxParallel : 8
74- encryption : AES256
75- retentionPolicy : " 7d"
76-
77- certificates :
78- server :
79- enabled : true
80- generate : true
81- client :
82- enabled : true
83- generate : true
84- user :
69+ # enable monitoring for the cluster
70+ monitoring :
8571 enabled : true
86- username :
87- - forgejo
72+ podMonitor :
73+ enabled : true
74+
75+ backups :
76+ # backups are disabled by default. This enables them
77+ enabled : true
78+ # Overrides the provider specific default endpoint. Defaults to:
79+ # S3: https://s3.<region>.amazonaws.com"
80+ endpointURL : " https://{{ .forgejo_s3_endpoint }}"
81+ # Overrides the provider specific default path
82+ destinationPath : " s3://forgejo-postgres"
83+
84+ # -- One of `s3`, `azure` or `google`
85+ provider : s3
86+
87+ s3 :
88+ region : auto
89+ bucket : forgejo-postgres
90+
91+ # existing secret for the s3 credentials
92+ secret :
93+ create : false
94+ name : s3-postgres-credentials
95+
96+ # wal backup details
97+ wal :
98+ compression : gzip
99+ maxParallel : 8
100+ encryption : AES256
88101
89- scheduledBackup :
90- name : forgejo-pg-backup
91- spec :
92- # Midnight daily backups for postgres data
93- schedule : ' {{ .forgejo_postgres_backup_schedule }}'
94- backupOwnerReference : self
95- cluster :
96- name : forgejo-postgres
102+ # -- Retention policy for backups
103+ retentionPolicy : " 2d"
97104
98- monitoring :
99- enablePodMonitor : true
105+ scheduledBackups :
106+ - name : forgejo-pg-backup
107+ schedule : ' {{ .forgejo_postgres_backup_schedule }}'
108+ # Midnight daily backups for postgres data
109+ backupOwnerReference : self
110+ # Backup method: barmanObjectStore or volumeSnapshot
111+ method : barmanObjectStore
100112
101113 postgresql :
102114 pg_hba :
0 commit comments