Commit 08829f7a authored by Dimitrios Gogos's avatar Dimitrios Gogos
Browse files

fix: update PostgreSQL version to 18.6 in Chart.yaml and values.yaml

parent d42b274b
Loading
Loading
Loading
Loading
+2 −2
Changes for README.md: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -82,9 +82,9 @@ kubectl -n oop create job --from=cronjob/postgres-backup postgres-backup-manual
kubectl -n oop logs -f job/postgres-backup-manual

# restore: mount the backup volume in a throwaway pod, then pg_restore into the database
kubectl -n oop run pg-restore --rm -it --restart=Never --image=postgres:17.11-alpine \
kubectl -n oop run pg-restore --rm -it --restart=Never --image=postgres:18.6-alpine \
  --labels=postgres-client=true \
  --overrides='{"spec":{"affinity":{"podAffinity":{"requiredDuringSchedulingIgnoredDuringExecution":[{"labelSelector":{"matchLabels":{"app":"postgres"}},"topologyKey":"kubernetes.io/hostname"}]}},"volumes":[{"name":"b","persistentVolumeClaim":{"claimName":"backups-postgres-0"}}],"containers":[{"name":"pg-restore","image":"postgres:17.11-alpine","stdin":true,"tty":true,"command":["sh"],"volumeMounts":[{"name":"b","mountPath":"/backups"}]}]}}'
  --overrides='{"spec":{"affinity":{"podAffinity":{"requiredDuringSchedulingIgnoredDuringExecution":[{"labelSelector":{"matchLabels":{"app":"postgres"}},"topologyKey":"kubernetes.io/hostname"}]}},"volumes":[{"name":"b","persistentVolumeClaim":{"claimName":"backups-postgres-0"}}],"containers":[{"name":"pg-restore","image":"postgres:18.6-alpine","stdin":true,"tty":true,"command":["sh"],"volumeMounts":[{"name":"b","mountPath":"/backups"}]}]}}'
# inside the pod (password: Secret postgres-credentials → postgres-password):
#   ls /backups                                   # pick a directory that contains COMPLETE
#   pg_restore -h postgres -U postgres -d <database> --clean --if-exists /backups/<run>/<database>.dump
+1 −1
Changes for oop-platform-chart/charts/postgresql/Chart.yaml: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -3,7 +3,7 @@ name: postgresql
description: Shared PostgreSQL instance for OOP platform components (one database and role per component, ADR-0025)
type: application
version: 1.0.0
appVersion: "17.11"
appVersion: "18.6"
keywords:
  - oop
  - postgresql
+1 −1
Changes for oop-platform-chart/charts/postgresql/values.yaml: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -3,7 +3,7 @@ name: postgres

image:
  repository: postgres
  tag: "17.11-alpine"
  tag: "18.6-alpine"
  digest: ""
  pullPolicy: IfNotPresent