From 15b51364ac02a7ee3823c5b12199af5fbc7f0f18 Mon Sep 17 00:00:00 2001 From: Rub21 Date: Wed, 27 Nov 2024 11:31:12 -0500 Subject: [PATCH] Update tuler purge deployment --- ohm/templates/tiler-cache-purge/deployment.yaml | 8 ++++++-- values.production.template.yaml | 4 +++- values.staging.template.yaml | 4 +++- 3 files changed, 12 insertions(+), 4 deletions(-) diff --git a/ohm/templates/tiler-cache-purge/deployment.yaml b/ohm/templates/tiler-cache-purge/deployment.yaml index ab8b7ff9..4bfed08a 100644 --- a/ohm/templates/tiler-cache-purge/deployment.yaml +++ b/ohm/templates/tiler-cache-purge/deployment.yaml @@ -65,8 +65,12 @@ spec: value: {{ .Values.ohm.tilerCachePurge.env.SEED_CONCURRENCY | quote }} - name: PURGE_CONCURRENCY value: {{ .Values.ohm.tilerCachePurge.env.PURGE_CONCURRENCY | quote }} - - name: TILER_CACHE_S3_BUCKET - value: {{ .Values.ohm.tilerCachePurge.env.TILER_CACHE_S3_BUCKET | quote }} + - name: ZOOM_LEVELS_TO_DELETE + value: {{ .Values.ohm.tilerCachePurge.env.ZOOM_LEVELS_TO_DELETE | quote }} + - name: S3_BUCKET_CACHE_TILER + value: {{ .Values.ohm.tilerCachePurge.env.S3_BUCKET_CACHE_TILER | quote }} + - name: S3_BUCKET_PATH_FILES + value: {{ .Values.ohm.tilerCachePurge.env.S3_BUCKET_PATH_FILES | quote }} envFrom: - configMapRef: name: {{ .Release.Name }}-tiler-server-cm diff --git a/values.production.template.yaml b/values.production.template.yaml index 8551c090..9d440eaa 100644 --- a/values.production.template.yaml +++ b/values.production.template.yaml @@ -938,7 +938,9 @@ ohm: PURGE_MAX_ZOOM: 17 # Purging zoom 18,19,20 takes hours to complete,we are going to remove direct from s3 the tiles for zoom 19-20 SEED_MIN_ZOOM: 8 SEED_MAX_ZOOM: 14 - TILER_CACHE_S3_BUCKET: tiler-cache-production + ZOOM_LEVELS_TO_DELETE: 18,19,20 + S3_BUCKET_CACHE_TILER: tiler-cache-production + S3_BUCKET_PATH_FILES: mnt/data/osm resources: enabled: false requests: diff --git a/values.staging.template.yaml b/values.staging.template.yaml index 8563f641..9c0a22d0 100644 --- a/values.staging.template.yaml +++ b/values.staging.template.yaml @@ -974,7 +974,9 @@ ohm: PURGE_MAX_ZOOM: 14 SEED_MIN_ZOOM: 8 SEED_MAX_ZOOM: 9 - TILER_CACHE_S3_BUCKET: tiler-cache-staging + ZOOM_LEVELS_TO_DELETE: 18,19,20 + S3_BUCKET_CACHE_TILER: tiler-cache-staging + S3_BUCKET_PATH_FILES: mnt/data/osm resources: enabled: false requests: