Skip to content

Commit 8628642

Browse files
authored
Upgrade PGO to 5.7.0; Add option to disable backups (#191)
* Upgrade PGO to 5.7.0; Add option to disable backups * disable backups by default * update PGO version in the docs
1 parent 7944f70 commit 8628642

File tree

4 files changed

+16
-3
lines changed

4 files changed

+16
-3
lines changed

docs/helm-install.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
0. `eoapi-k8s` depends on the [Crunchydata Postgresql Operator](https://access.crunchydata.com/documentation/postgres-operator/latest/installation/helm). Install that first:
44

55
```bash
6-
$ helm install --set disable_check_for_upgrades=true pgo oci://registry.developers.crunchydata.com/crunchydata/pgo --version 5.5.2
6+
$ helm install --set disable_check_for_upgrades=true pgo oci://registry.developers.crunchydata.com/crunchydata/pgo --version 5.7.0
77
```
88

99
1. Add the eoapi repo from https://devseed.com/eoapi-k8s/:

helm-chart/postgrescluster/Chart.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ name: postgrescluster
33
description: A Helm chart for eoapi database dep for k8s
44
type: application
55
# The version below should match the version on the PostgresCluster CRD
6-
version: 5.5.3
7-
appVersion: 5.5.3
6+
# from CrunchyData's Postgres Operator
7+
# https://access.crunchydata.com/documentation/postgres-operator/latest/releases
8+
version: 5.7.0
9+
appVersion: 5.7.0
810
force: true

helm-chart/postgrescluster/templates/postgres.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ spec:
3636
memory: {{ default "" .Values.instanceMemory | quote }}
3737
{{- end }}
3838
{{- end }}
39+
{{- if .Values.backupsEnabled }}
3940
backups:
4041
pgbackrest:
4142
{{- if .Values.imagePgBackRest }}
@@ -142,6 +143,7 @@ spec:
142143
requests:
143144
storage: {{ default "1Gi" .Values.backupsSize | quote }}
144145
{{- end }}
146+
{{- end }}
145147
{{- if or .Values.pgBouncerReplicas .Values.pgBouncerConfig }}
146148
proxy:
147149
pgBouncer:

helm-chart/postgrescluster/values.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,15 @@ postgresVersion: 16
173173
# Backups / pgBackRest Settings #
174174
#################################
175175

176+
# backupsEnabled sets whether pgBackRest backups are enabled.
177+
# This is disabled by default.
178+
# Disabling backups is only supported on CrunchyData Postgres Operator v5.7.0 and above.
179+
# If you are using a version below v5.7.0, you will need to enable backups.
180+
# If enabled, please carefully review the pgBackRest config below.
181+
# Check out CrunchyData's Postgres Operator docs for more info:
182+
# https://access.crunchydata.com/documentation/postgres-operator/v5/tutorials/backups-disaster-recovery/backups
183+
backupsEnabled: false
184+
176185
# backupsSize sets the storage size of the backups to a volume in Kubernetes.
177186
# can be overridden by "pgBackRestConfig", if set. Defaults to the value below.
178187
# backupsSize: 1Gi

0 commit comments

Comments
 (0)