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
4 changes: 2 additions & 2 deletions helm/cas-postgres-cluster/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ description: |-

type: application

version: 1.1.3
version: 1.2.0

# Postgres Operator version for which this chart has been built.
# It will very likely work for later versions, in which case the list of compatible images will change.
# For the full list of compatible postgres/pgbouncer/pgbackrest versions, see https://access.crunchydata.com/documentation/postgres-operator/latest/references/components
appVersion: "5.3.1"
appVersion: "5.7.0"

dependencies:
- name: terraform-bucket-provision
Expand Down
16 changes: 2 additions & 14 deletions helm/cas-postgres-cluster/templates/PostgresCluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -103,23 +103,11 @@ spec:
incremental: "0 0,4,12,16,20 * * *"
# this stuff is for the "pgbackrest" container (the only non-init container) in the "obps-postgres-repo-host" pod
repoHost:
resources:
requests:
cpu: 50m
memory: 64Mi
limits:
cpu: 100m
memory: 128Mi
resources: {{ toYaml .Values.postgresCluster.repoHost.resources | nindent 10 }}
sidecars:
# this stuff is for the "pgbackrest" container in the "obps-postgres-pgha1" set of pods
pgbackrest:
resources:
requests:
cpu: 50m
memory: 64Mi
limits:
cpu: 100m
memory: 128Mi
resources: {{ toYaml .Values.postgresCluster.pgbackrest.resources | nindent 12 }}
# allows the triggering of manual backups
manual:
repoName: repo1
Expand Down
16 changes: 16 additions & 0 deletions helm/cas-postgres-cluster/values.schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"$schema": "http://json-schema.org/draft-07/schema",
"required": ["postgresCluster"],
"properties": {
"postgresCluster": {
"type": "object",
"required": ["postgresVersion"],
"properties": {
"postgresVersion": {
"type": "number",
"minimum": 17
}
}
}
}
}
27 changes: 19 additions & 8 deletions helm/cas-postgres-cluster/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
environment: ~

postgresCluster:
postgresVersion: 14
postgresVersion: 17
storageSize: 1Gi
resources:
requests:
Expand All @@ -13,16 +13,27 @@ postgresCluster:
memory: 256Mi

postgres:
# image: artifacts.developer.gov.bc.ca/bcgov-docker-local/crunchy-postgres
# tag: ubi8-15.7-0
replicaCount: 2
# pgbackrest:
# image: artifacts.developer.gov.bc.ca/bcgov-docker-local/crunchy-pgbackrest
# tag: ubi8-2.41-4
pgbackrest:
# Resources for the pgbackrest sidecar container
resources:
requests:
cpu: 50m
memory: 64Mi
limits:
cpu: 100m
memory: 128Mi
pgbouncer:
# image: artifacts.developer.gov.bc.ca/bcgov-docker-local/crunchy-pgbouncer
# tag: ubi8-1.18-0
replicaCount: 2
# Resources for the "obps-postgres-repo-host" pod
repoHost:
resources:
requests:
cpu: 50m
memory: 64Mi
limits:
cpu: 100m
memory: 128Mi

# The "users" value(s) is passed to the crunchy postgres operator to create the database.
# See https://access.crunchydata.com/documentation/postgres-operator/latest/tutorials/basic-setup/user-management
Expand Down