switch to pg-17

This commit is contained in:
2024-12-23 18:36:21 -06:00
parent 78fea2da96
commit 655cb477d1

View File

@@ -32,22 +32,22 @@ sonarr4:
- name: SONARR__POSTGRES_HOST - name: SONARR__POSTGRES_HOST
valueFrom: valueFrom:
secretKeyRef: secretKeyRef:
name: sonarr4-postgresql-16-cluster-app name: sonarr4-postgresql-17-cluster-app
key: host key: host
- name: SONARR__POSTGRES_PORT - name: SONARR__POSTGRES_PORT
valueFrom: valueFrom:
secretKeyRef: secretKeyRef:
name: sonarr4-postgresql-16-cluster-app name: sonarr4-postgresql-17-cluster-app
key: port key: port
- name: SONARR__POSTGRES_USER - name: SONARR__POSTGRES_USER
valueFrom: valueFrom:
secretKeyRef: secretKeyRef:
name: sonarr4-postgresql-16-cluster-app name: sonarr4-postgresql-17-cluster-app
key: username key: username
- name: SONARR__POSTGRES_PASSWORD - name: SONARR__POSTGRES_PASSWORD
valueFrom: valueFrom:
secretKeyRef: secretKeyRef:
name: sonarr4-postgresql-16-cluster-app name: sonarr4-postgresql-17-cluster-app
key: password key: password
probes: probes:
liveness: liveness:
@@ -165,7 +165,7 @@ postgres-16-cluster:
backupIndex: 1 backupIndex: 1
retentionPolicy: "7d" retentionPolicy: "7d"
postgres-17-cluster: postgres-17-cluster:
mode: replica mode: standalone
cluster: cluster:
image: image:
repository: ghcr.io/cloudnative-pg/postgresql repository: ghcr.io/cloudnative-pg/postgresql
@@ -183,19 +183,6 @@ postgres-17-cluster:
postInitSQL: postInitSQL:
- CREATE DATABASE "sonarr-main" OWNER "app"; - CREATE DATABASE "sonarr-main" OWNER "app";
- CREATE DATABASE "sonarr-log" OWNER "app"; - CREATE DATABASE "sonarr-log" OWNER "app";
replica:
importType: monolith
importDatabases:
- sonarr-main
- sonarr-log
externalCluster:
connectionParameters:
host: sonarr4-postgresql-16-cluster-rw
user: postgres
dbname: postgres
password:
name: sonarr4-postgresql-16-cluster-superuser
key: password
backup: backup:
enabled: false enabled: false
endpointURL: https://nyc3.digitaloceanspaces.com endpointURL: https://nyc3.digitaloceanspaces.com