Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Less backups #212

Merged
merged 6 commits into from
Oct 26, 2022
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
17 changes: 17 additions & 0 deletions helm/backup-storage/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@

## **BEFORE RUNNING HELM UPGRADE:**

Make sure to add the rocket chat webhook to production facing values files. Make sure not to commit this value.

## Intro to backup container

The current patroni clusters are backud up using a modified version of the platform services backup container. This is due to an issue with the spilo patroni image.

The backup container repo is [here](https://github.com/BCDevOps/backup-container).

The modified postgres plugin can be found [here](https://github.com/bcgov/sso-keycloak/blob/dev/docker/backup-container/backup.postgres.plugin).

A side effect of this conflict is that we cannot currently verify the daily backups with a test restoration.

## Installing and upgrading backups

These charts can be upgraded using make commands:

`make upgrade NAME=patroni-backup-storage NAMESPACE=<<namespace>>`
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,19 @@
nameOverride: "sso-backup-storage"
fullnameOverride: "sso-backup-storage"

image:
repository: ghcr.io/bcgov/backup-storage
tag: postgres-13
pullPolicy: Always
# # The bcgov repos version for testing
# repository: bcgovimages/backup-container
# tag: v7.6.5-build.13

backupConfig: |
postgres=sso-pgsql-dev-11-patroni:5432/rhsso

0 1 * * * default ./backup.sh -s
0 4 * * * default ./backup.sh -s -v all
# 0 4 * * * default ./backup.sh -s -v all

db:
secretName: sso-pgsql-dev
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
nameOverride: "sso-backup-storage"
fullnameOverride: "sso-backup-storage"

image:
repository: ghcr.io/bcgov/backup-storage
tag: postgres-13
pullPolicy: Always

backupConfig: |
postgres=sso-pgsql-dev-11-patroni:5432/rhsso

0 1 * * * default ./backup.sh -s
0 4 * * * default ./backup.sh -s -v all
# 0 4 * * * default ./backup.sh -s -v all

db:
secretName: patroni-11-dev-secret
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
nameOverride: "sso-backup-storage"
fullnameOverride: "sso-backup-storage"

image:
repository: ghcr.io/bcgov/backup-storage
tag: postgres-13
pullPolicy: Always

backupConfig: |
postgres=sso-pgsql-prod-11-patroni:5432/rhsso

0 1 * * * default ./backup.sh -s
0 4 * * * default ./backup.sh -s -v all
# 0 4 * * * default ./backup.sh -s -v all

db:
secretName: patroni-11-prod-secret
usernameKey: username
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
nameOverride: "sso-backup-storage"
fullnameOverride: "sso-backup-storage"

image:
repository: ghcr.io/bcgov/backup-storage
tag: postgres-13
pullPolicy: Always

backupConfig: |
postgres=sso-pgsql-test-11-patroni:5432/keycloak

0 1 * * * default ./backup.sh -s
0 4 * * * default ./backup.sh -s -v all
# 0 4 * * * default ./backup.sh -s -v all

db:
secretName: patroni-11-test-secret
Expand Down