diff --git a/clusters/cl01tl/applications/jellystat/Chart.yaml b/clusters/cl01tl/applications/jellystat/Chart.yaml index 74260700d..7e24106de 100644 --- a/clusters/cl01tl/applications/jellystat/Chart.yaml +++ b/clusters/cl01tl/applications/jellystat/Chart.yaml @@ -23,5 +23,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.20.10 + repository: http://alexlebens.github.io/helm-charts icon: https://raw.githubusercontent.com/walkxcode/dashboard-icons/main/png/jellystat.png appVersion: 1.1.1 diff --git a/clusters/cl01tl/applications/jellystat/templates/external-secret.yaml b/clusters/cl01tl/applications/jellystat/templates/external-secret.yaml index 9bce9f5b3..ff735b634 100644 --- a/clusters/cl01tl/applications/jellystat/templates/external-secret.yaml +++ b/clusters/cl01tl/applications/jellystat/templates/external-secret.yaml @@ -126,3 +126,35 @@ spec: key: /digital-ocean/home-infra/postgres-backups metadataPolicy: None property: secret + +--- +apiVersion: external-secrets.io/v1beta1 +kind: ExternalSecret +metadata: + name: jellystat-postgresql-17-cluster-backup-secret + namespace: {{ .Release.Namespace }} + labels: + app.kubernetes.io/name: jellystat-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/jellystat/values.yaml b/clusters/cl01tl/applications/jellystat/values.yaml index 4d0545bf4..160343aba 100644 --- a/clusters/cl01tl/applications/jellystat/values.yaml +++ b/clusters/cl01tl/applications/jellystat/values.yaml @@ -110,3 +110,31 @@ postgres-16-cluster: endpointCredentials: jellystat-postgresql-16-cluster-backup-secret backupIndex: 1 retentionPolicy: "7d" +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: + externalCluster: + connectionParameters: + host: jellystat-postgresql-16-cluster-rw + user: app + dbname: app + password: + name: jellystat-postgresql-16-cluster-app + key: password + backup: + enabled: false + endpointURL: https://nyc3.digitaloceanspaces.com + destinationPath: s3://postgres-backups-ce540ddf106d186bbddca68a/cl01tl/jellystat/jellystat-postgresql-17-cluster + endpointCredentials: jellystat-postgresql-17-cluster-backup-secret + backupIndex: 1 + retentionPolicy: "7d"