From 394d5437c8a884831e5ca563308dbbe0772553ad Mon Sep 17 00:00:00 2001 From: Rub21 Date: Fri, 6 Dec 2024 15:41:26 -0500 Subject: [PATCH] Tiler use external DB --- .github/workflows/chartpress.yaml | 4 ++++ ohm/requirements.yaml | 2 +- values.staging.template.yaml | 10 ++++++---- 3 files changed, 11 insertions(+), 5 deletions(-) diff --git a/.github/workflows/chartpress.yaml b/.github/workflows/chartpress.yaml index edce8666..2e4292d5 100644 --- a/.github/workflows/chartpress.yaml +++ b/.github/workflows/chartpress.yaml @@ -56,6 +56,8 @@ jobs: DEVELOPMENT_OAUTH_KEY: ${{ secrets.STAGING_OAUTH_KEY }} DEVELOPMENT_S3_BUCKET: osmseed-dev ## tiler + + DEVELOPMENT_TILER_DB_HOST: ${{ secrets.STAGING_TILER_DB_HOST }} DEVELOPMENT_TILER_DB_PASSWORD: ${{ secrets.STAGING_TILER_DB_PASSWORD }} DEVELOPMENT_TILER_CACHE_AWS_ACCESS_KEY_ID: ${{ secrets.STAGING_TILER_CACHE_AWS_ACCESS_KEY_ID }} DEVELOPMENT_TILER_CACHE_AWS_SECRET_ACCESS_KEY: ${{ secrets.STAGING_TILER_CACHE_AWS_SECRET_ACCESS_KEY }} @@ -99,6 +101,7 @@ jobs: STAGING_OAUTH_KEY: ${{ secrets.STAGING_OAUTH_KEY }} STAGING_S3_BUCKET: ${{ secrets.STAGING_S3_BUCKET }} ## tiler + STAGING_TILER_DB_HOST: ${{ secrets.STAGING_TILER_DB_HOST }} STAGING_TILER_DB_PASSWORD: ${{ secrets.STAGING_TILER_DB_PASSWORD }} STAGING_TILER_CACHE_AWS_ACCESS_KEY_ID: ${{ secrets.STAGING_TILER_CACHE_AWS_ACCESS_KEY_ID }} STAGING_TILER_CACHE_AWS_SECRET_ACCESS_KEY: ${{ secrets.STAGING_TILER_CACHE_AWS_SECRET_ACCESS_KEY }} @@ -146,6 +149,7 @@ jobs: PRODUCTION_S3_BUCKET: ${{ secrets.PRODUCTION_S3_BUCKET }} PRODUCTION_DB_BACKUP_S3_BUCKET: ${{ secrets.PRODUCTION_DB_BACKUP_S3_BUCKET }} ## tiler + PRODUCTION_TILER_DB_HOST: ${{ secrets.PRODUCTION_TILER_DB_HOST }} PRODUCTION_TILER_DB_PASSWORD: ${{ secrets.PRODUCTION_TILER_DB_PASSWORD }} PRODUCTION_TILER_CACHE_AWS_ACCESS_KEY_ID: ${{ secrets.PRODUCTION_TILER_CACHE_AWS_ACCESS_KEY_ID }} PRODUCTION_SQS_QUEUE_URL: ${{ secrets.PRODUCTION_SQS_QUEUE_URL }} diff --git a/ohm/requirements.yaml b/ohm/requirements.yaml index 883ff68f..daeaff2d 100644 --- a/ohm/requirements.yaml +++ b/ohm/requirements.yaml @@ -1,4 +1,4 @@ dependencies: - name: osm-seed - version: '0.1.0-n811.h370bddd' + version: '0.1.0-n805.h7b1713f' repository: https://devseed.com/osm-seed-chart/ diff --git a/values.staging.template.yaml b/values.staging.template.yaml index 91eb6c1a..be38ec2f 100644 --- a/values.staging.template.yaml +++ b/values.staging.template.yaml @@ -384,9 +384,11 @@ osm-seed: tilerDb: enabled: true + useExternalHost: # When we are using useExternalHost.enabled= true other variables are giong to be disable ans use the external host config + enabled: true env: - POSTGRES_HOST: staging-tiler-db - POSTGRES_DB: tiler-osm + POSTGRES_HOST: {{STAGING_TILER_DB_HOST}} + POSTGRES_DB: tiler_osm_staging POSTGRES_USER: postgres POSTGRES_PASSWORD: {{STAGING_TILER_DB_PASSWORD}} POSTGRES_PORT: 5432 @@ -498,8 +500,8 @@ osm-seed: accessMode: ReadWriteOnce mountPath: /mnt/data # In case cloudProvider: aws - AWS_ElasticBlockStore_volumeID: vol-088adc6b334905d19 - AWS_ElasticBlockStore_size: 50Gi + AWS_ElasticBlockStore_volumeID: vol-01ae847c1263755b0 + AWS_ElasticBlockStore_size: 30Gi resources: enabled: false requests: