From 9015eea3e9913b9c67597585c7f199838117a225 Mon Sep 17 00:00:00 2001 From: Alex Lebens Date: Sat, 21 Dec 2024 21:31:28 -0600 Subject: [PATCH] add pg-17 cluster --- .../cl01tl/applications/jellyplist/Chart.yaml | 4 +++ .../jellyplist/templates/external-secret.yaml | 32 +++++++++++++++++++ .../applications/jellyplist/values.yaml | 31 ++++++++++++++++++ 3 files changed, 67 insertions(+) diff --git a/clusters/cl01tl/applications/jellyplist/Chart.yaml b/clusters/cl01tl/applications/jellyplist/Chart.yaml index c26af1ed8..7e74eb51c 100644 --- a/clusters/cl01tl/applications/jellyplist/Chart.yaml +++ b/clusters/cl01tl/applications/jellyplist/Chart.yaml @@ -28,5 +28,9 @@ dependencies: alias: postgres-16-cluster version: 3.19.0 repository: http://alexlebens.github.io/helm-charts + - name: postgres-cluster + alias: postgres-17-cluster + version: 3.19.0 + repository: http://alexlebens.github.io/helm-charts icon: https://raw.githubusercontent.com/kamilkosek/jellyplist/main/static/images/logo_large.png appVersion: v0.1.9 diff --git a/clusters/cl01tl/applications/jellyplist/templates/external-secret.yaml b/clusters/cl01tl/applications/jellyplist/templates/external-secret.yaml index 76692377a..259ce76d3 100644 --- a/clusters/cl01tl/applications/jellyplist/templates/external-secret.yaml +++ b/clusters/cl01tl/applications/jellyplist/templates/external-secret.yaml @@ -88,3 +88,35 @@ spec: key: /digital-ocean/home-infra/postgres-backups metadataPolicy: None property: secret + +--- +apiVersion: external-secrets.io/v1beta1 +kind: ExternalSecret +metadata: + name: jellyplist-postgresql-17-cluster-backup-secret + namespace: {{ .Release.Namespace }} + labels: + app.kubernetes.io/name: jellyplist-postgresql-17-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 diff --git a/clusters/cl01tl/applications/jellyplist/values.yaml b/clusters/cl01tl/applications/jellyplist/values.yaml index be57e8e18..5bd3872ae 100644 --- a/clusters/cl01tl/applications/jellyplist/values.yaml +++ b/clusters/cl01tl/applications/jellyplist/values.yaml @@ -138,3 +138,34 @@ postgres-16-cluster: destinationPath: s3://postgres-backups-ce540ddf106d186bbddca68a/cl01tl/jellyplist/jellyplist-postgresql-16-cluster endpointCredentials: jellyplist-postgresql-16-cluster-backup-secret backupIndex: 1 +postgres-17-cluster: + mode: replica + cluster: + image: + repository: ghcr.io/cloudnative-pg/postgresql + tag: "17.2-22" + walStorage: + storageClass: local-path + storage: + storageClass: local-path + monitoring: + enabled: true + replica: + importType: microservice + importDatabases: + - app + - jellyplist + externalCluster: + connectionParameters: + host: jellyplist-postgresql-16-cluster-rw + user: app + dbname: app + password: + name: jellyplist-postgresql-16-cluster-app + key: password + backup: + enabled: false + endpointURL: https://nyc3.digitaloceanspaces.com + destinationPath: s3://postgres-backups-ce540ddf106d186bbddca68a/cl01tl/jellyplist/jellyplist-postgresql-17-cluster + endpointCredentials: jellyplist-postgresql-17-cluster-backup-secret + backupIndex: 1