Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/helm-install.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
0. `eoapi-k8s` depends on the [Crunchydata Postgresql Operator](https://access.crunchydata.com/documentation/postgres-operator/latest/installation/helm). Install that first:

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

1. Add the eoapi repo from https://devseed.com/eoapi-k8s/:
Expand Down
6 changes: 4 additions & 2 deletions helm-chart/postgrescluster/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ name: postgrescluster
description: A Helm chart for eoapi database dep for k8s
type: application
# The version below should match the version on the PostgresCluster CRD
version: 5.5.3
appVersion: 5.5.3
# from CrunchyData's Postgres Operator
# https://access.crunchydata.com/documentation/postgres-operator/latest/releases
version: 5.7.0
appVersion: 5.7.0
force: true
2 changes: 2 additions & 0 deletions helm-chart/postgrescluster/templates/postgres.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ spec:
memory: {{ default "" .Values.instanceMemory | quote }}
{{- end }}
{{- end }}
{{- if .Values.backupsEnabled }}
backups:
pgbackrest:
{{- if .Values.imagePgBackRest }}
Expand Down Expand Up @@ -142,6 +143,7 @@ spec:
requests:
storage: {{ default "1Gi" .Values.backupsSize | quote }}
{{- end }}
{{- end }}
{{- if or .Values.pgBouncerReplicas .Values.pgBouncerConfig }}
proxy:
pgBouncer:
Expand Down
9 changes: 9 additions & 0 deletions helm-chart/postgrescluster/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,15 @@ postgresVersion: 16
# Backups / pgBackRest Settings #
#################################

# backupsEnabled sets whether pgBackRest backups are enabled.
# This is disabled by default.
# Disabling backups is only supported on CrunchyData Postgres Operator v5.7.0 and above.
# If you are using a version below v5.7.0, you will need to enable backups.
# If enabled, please carefully review the pgBackRest config below.
# Check out CrunchyData's Postgres Operator docs for more info:
# https://access.crunchydata.com/documentation/postgres-operator/v5/tutorials/backups-disaster-recovery/backups
backupsEnabled: false

# backupsSize sets the storage size of the backups to a volume in Kubernetes.
# can be overridden by "pgBackRestConfig", if set. Defaults to the value below.
# backupsSize: 1Gi
Expand Down