From 78fea2da962fe9a29bfced5dba69454dc9e74c7e Mon Sep 17 00:00:00 2001 From: Alex Lebens Date: Mon, 23 Dec 2024 18:35:37 -0600 Subject: [PATCH] remove pg-16 --- .../cl01tl/applications/sonarr4-4k/Chart.yaml | 4 -- .../sonarr4-4k/templates/external-secret.yaml | 32 ------------- .../applications/sonarr4-4k/values.yaml | 45 +++---------------- 3 files changed, 5 insertions(+), 76 deletions(-) diff --git a/clusters/cl01tl/applications/sonarr4-4k/Chart.yaml b/clusters/cl01tl/applications/sonarr4-4k/Chart.yaml index 300d97f59..dbb38fd73 100644 --- a/clusters/cl01tl/applications/sonarr4-4k/Chart.yaml +++ b/clusters/cl01tl/applications/sonarr4-4k/Chart.yaml @@ -24,10 +24,6 @@ dependencies: alias: sonarr4-4k repository: https://bjw-s.github.io/helm-charts/ version: 3.5.1 - - name: postgres-cluster - alias: postgres-16-cluster - version: 3.21.0 - repository: http://alexlebens.github.io/helm-charts - name: postgres-cluster alias: postgres-17-cluster version: 3.21.0 diff --git a/clusters/cl01tl/applications/sonarr4-4k/templates/external-secret.yaml b/clusters/cl01tl/applications/sonarr4-4k/templates/external-secret.yaml index 64cc0208f..bde770fd3 100644 --- a/clusters/cl01tl/applications/sonarr4-4k/templates/external-secret.yaml +++ b/clusters/cl01tl/applications/sonarr4-4k/templates/external-secret.yaml @@ -56,38 +56,6 @@ spec: metadataPolicy: None property: secret_key ---- -apiVersion: external-secrets.io/v1beta1 -kind: ExternalSecret -metadata: - name: sonarr4-4k-postgresql-16-cluster-backup-secret - namespace: {{ .Release.Namespace }} - labels: - app.kubernetes.io/name: sonarr4-4k-postgresql-16-cluster-backup-secret - app.kubernetes.io/instance: {{ .Release.Name }} - app.kubernetes.io/version: {{ .Chart.AppVersion }} - app.kubernetes.io/component: database - app.kubernetes.io/part-of: {{ .Release.Name }} -spec: - secretStoreRef: - kind: ClusterSecretStore - name: vault - data: - - secretKey: ACCESS_KEY_ID - remoteRef: - conversionStrategy: Default - decodingStrategy: None - key: /digital-ocean/home-infra/postgres-backups - metadataPolicy: None - property: access - - secretKey: ACCESS_SECRET_KEY - remoteRef: - conversionStrategy: Default - decodingStrategy: None - key: /digital-ocean/home-infra/postgres-backups - metadataPolicy: None - property: secret - --- apiVersion: external-secrets.io/v1beta1 kind: ExternalSecret diff --git a/clusters/cl01tl/applications/sonarr4-4k/values.yaml b/clusters/cl01tl/applications/sonarr4-4k/values.yaml index 477024efd..c3f9b2cc2 100644 --- a/clusters/cl01tl/applications/sonarr4-4k/values.yaml +++ b/clusters/cl01tl/applications/sonarr4-4k/values.yaml @@ -32,22 +32,22 @@ sonarr4-4k: - name: SONARR__POSTGRES_HOST valueFrom: secretKeyRef: - name: sonarr4-4k-postgresql-16-cluster-app + name: sonarr4-4k-postgresql-17-cluster-app key: host - name: SONARR__POSTGRES_PORT valueFrom: secretKeyRef: - name: sonarr4-4k-postgresql-16-cluster-app + name: sonarr4-4k-postgresql-17-cluster-app key: port - name: SONARR__POSTGRES_USER valueFrom: secretKeyRef: - name: sonarr4-4k-postgresql-16-cluster-app + name: sonarr4-4k-postgresql-17-cluster-app key: username - name: SONARR__POSTGRES_PASSWORD valueFrom: secretKeyRef: - name: sonarr4-4k-postgresql-16-cluster-app + name: sonarr4-4k-postgresql-17-cluster-app key: password probes: liveness: @@ -141,31 +141,8 @@ sonarr4-4k: main: - path: /mnt/store readOnly: false -postgres-16-cluster: - mode: standalone - cluster: - enableSuperuserAccess: true - walStorage: - storageClass: local-path - storage: - storageClass: local-path - monitoring: - enabled: true - initdb: - database: app - owner: app - postInitSQL: - - CREATE DATABASE "sonarr-main" OWNER "app"; - - CREATE DATABASE "sonarr-log" OWNER "app"; - backup: - enabled: true - endpointURL: https://nyc3.digitaloceanspaces.com - destinationPath: s3://postgres-backups-ce540ddf106d186bbddca68a/cl01tl/sonarr4-4k/sonarr4-4k-postgresql-16-cluster - endpointCredentials: sonarr4-4k-postgresql-16-cluster-backup-secret - backupIndex: 1 - retentionPolicy: "7d" postgres-17-cluster: - mode: replica + mode: standalone cluster: image: repository: ghcr.io/cloudnative-pg/postgresql @@ -183,18 +160,6 @@ postgres-17-cluster: postInitSQL: - CREATE DATABASE "sonarr-main" OWNER "app"; - CREATE DATABASE "sonarr-log" OWNER "app"; - replica: - importType: monolith - importDatabases: - - app - externalCluster: - connectionParameters: - host: sonarr4-4k-postgresql-16-cluster-rw - user: postgres - dbname: postgres - password: - name: sonarr4-4k-postgresql-16-cluster-superuser - key: password backup: enabled: false endpointURL: https://nyc3.digitaloceanspaces.com