diff --git a/charts/timescaledb-single/Chart.yaml b/charts/timescaledb-single/Chart.yaml index 697ffb69..84e86776 100644 --- a/charts/timescaledb-single/Chart.yaml +++ b/charts/timescaledb-single/Chart.yaml @@ -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, diff --git a/charts/timescaledb-single/docs/admin-guide.md b/charts/timescaledb-single/docs/admin-guide.md index fb0c228f..4aa182d4 100644 --- a/charts/timescaledb-single/docs/admin-guide.md +++ b/charts/timescaledb-single/docs/admin-guide.md @@ -146,6 +146,8 @@ For example: PGBACKREST_REPO1_S3_KEY_SECRET: ``` +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 diff --git a/charts/timescaledb-single/templates/statefulset-timescaledb.yaml b/charts/timescaledb-single/templates/statefulset-timescaledb.yaml index 7e63437d..ee7e5efa 100644 --- a/charts/timescaledb-single/templates/statefulset-timescaledb.yaml +++ b/charts/timescaledb-single/templates/statefulset-timescaledb.yaml @@ -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 }} @@ -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 @@ -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: {}