-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
We need to do database upgrades, and part of that is to replace the standalone PostgreSQL pod with a CrunchyDB cluster.
- Loading branch information
1 parent
6d042d9
commit dd9397d
Showing
3 changed files
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Fider | ||
|
||
Fider uses CrunchyDB as its highly available database. CrunchyDB uses Patroni, | ||
which uses PostgreSQL as the database. | ||
|
||
## Installation | ||
|
||
CrunchyDB is installed using the | ||
[Helm chart](https://github.com/bcgov/crunchy-postgres) provided by the fine | ||
folks over at platform services. Clone this repo. | ||
|
||
> TBD: should we make a copy of it in our repo, so that a recreate uses the same | ||
> charts? Probably. | ||
```sh | ||
export HELM_CHART_DIR=<your dir> | ||
$ helm -n a12c97-tools upgrade --install crunchy-tools-fider $HELM_CHART_DIR/charts/tools -f values-tools-fider.yaml | ||
$ helm -n a12c97-tools upgrade --install crunchy-postgres-fider $HELM_CHART_DIR/charts/crunchy-postgres -f values-crunchy-postgres-fider.yaml | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
deploymentName: crunchy-postgres-fider | ||
fullnameOverride: crunchy-postgres-tools-fider |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
fullnameOverride: crunchy-postgres-fider | ||
|
||
postgresVersion: 16 | ||
|
||
instances: | ||
replicas: 3 | ||
dataVolumeClaimSpec: | ||
storage: 512Mi | ||
|
||
pgBackRest: | ||
repos: | ||
schedules: | ||
full: 0 12 * * * | ||
incremental: 0 0,4,8,16,20 * * * | ||
|
||
proxy: | ||
pgBouncer: | ||
replicas: 3 |