Skip to content
This repository has been archived by the owner on Jan 18, 2024. It is now read-only.

Fixs #628 to bootstrap from backup #629

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
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 charts/timescaledb-single/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
apiVersion: v1
name: timescaledb-single
description: 'TimescaleDB HA Deployment.'
version: 0.33.1
version: 0.33.2
icon: https://cdn.iconscout.com/icon/free/png-256/timescaledb-1958407-1651618.png

# appVersion specifies the version of the software, which can vary wildly,
Expand Down
2 changes: 2 additions & 0 deletions charts/timescaledb-single/docs/admin-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,8 @@ For example:
PGBACKREST_REPO1_S3_KEY_SECRET: <base64 encoded examplesecret+D48GXfDdtlnlSdmB>
```

These values must be duplicated in the `backup.pgBackRest: {}` section regardless if `backup.enabled=true` otherwise the configuration at `/etc/pgbackrest/pgbackrest.conf` will not be able to bootstrap from backup.

Another example, if you want to include encryption of your backups by pgBackRest, is to include these parameters:

```yaml
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,8 @@ spec:
- mountPath: /etc/pgbackrest/bootstrap
name: pgbackrest-bootstrap
readOnly: true
- mountPath: {{ index .Values.backup.pgBackRest "repo1-path" | default (printf "/%s/%s/" .Release.Namespace (include "clusterName" .)) | quote }}
name: pgbackrest-repo1-path
resources:
{{ toYaml .Values.resources | nindent 10 }}

Expand Down Expand Up @@ -401,6 +403,9 @@ spec:
- mountPath: /etc/pgbackrest_secrets
name: pgbackrest-secrets
readOnly: true
- mountPath: {{ index .Values.backup.pgBackRest "repo1-path" | default (printf "/%s/%s/" .Release.Namespace (include "clusterName" .)) | quote }}
name: pgbackrest-repo1-path

env:
- name: PGHOST
value: /var/run/postgresql
Expand Down Expand Up @@ -528,6 +533,8 @@ spec:
secret:
secretName: {{ .Values.bootstrapFromBackup.secretName }}
optional: True
- name: pgbackrest-repo1-path
emptyDir: {}
{{- if not .Values.persistentVolumes.data.enabled }}
- name: storage-volume
emptyDir: {}
Expand Down
Loading