diff --git a/.kontinuous/config.yaml b/.kontinuous/config.yaml index d3d7e1e51a..73a04f9338 100644 --- a/.kontinuous/config.yaml +++ b/.kontinuous/config.yaml @@ -3,6 +3,7 @@ dependencies: fabrique: import: socialgouv/kontinuous/plugins/fabrique extends: + - name: ovh - name: buildkit-service dependencies: contrib: @@ -14,12 +15,3 @@ dependencies: required: false azure-pg-admin-user-devflex: required: false - # secret-name: - # enabled: true - # reload: false - # required: false - # fromNamespace: <$projectName-ci> - # toNamespace: true - # toAllNamespace: false - # to: azure-pg-admin-user - # from: [azure-pg-admin-user] diff --git a/.kontinuous/env/preprod/values.yaml b/.kontinuous/env/preprod/values.yaml index 9c69a27c0c..10de2a99aa 100644 --- a/.kontinuous/env/preprod/values.yaml +++ b/.kontinuous/env/preprod/values.yaml @@ -2,6 +2,9 @@ global: pgSecretName: pg-app pg: + ~chart: pg + backup: + name: ovh # backup on a new folder cnpg-cluster: persistence: size: "30Gi" @@ -10,6 +13,23 @@ pg: memory: 3Gi limits: memory: 3Gi + recovery: + enabled: true + ~tpl~database: "{{ .Values.global.pgDatabase }}" + ~tpl~owner: "{{ .Values.global.pgUser }}" + secretName: "pg-db" + barmanObjectStore: + ~tpl~destinationPath: "s3://domifa-dev-backups/domifa-preprod" + s3Credentials: + accessKeyId: + ~tpl~name: "domifa-dev-backups-access-key" + key: bucket_access_key + secretAccessKey: + ~tpl~name: "domifa-dev-backups-access-key" + key: bucket_secret_key + region: + ~tpl~name: "domifa-dev-backups-access-key" + key: bucket_region pg-metabase: ~chart: pg