Skip to content

Commit

Permalink
Set env vars for tiler cronjob
Browse files Browse the repository at this point in the history
  • Loading branch information
Rub21 committed Nov 25, 2024
1 parent 9f776c2 commit f5c5a59
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
12 changes: 6 additions & 6 deletions ohm/templates/tiler-cache-seed/cronjob.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,17 +36,17 @@ spec:
{{- end }}
env:
- name: GEOJSON_URL
value: {{ .Values.ohm.tilerCacheSeed.geojsonUrl | quote }}
value: {{ .Values.ohm.tilerCacheSeed.GEOJSON_URL | quote }}
- name: FEATURE_TYPE
value: {{ .Values.ohm.tilerCacheSeed.featureType | quote }}
value: {{ .Values.ohm.tilerCacheSeed.FEATURE_TYPE | quote }}
- name: ZOOM_LEVELS
value: {{ .Values.ohm.tilerCacheSeed.zoomLevels | quote }}
value: {{ .Values.ohm.tilerCacheSeed.ZOOM_LEVELS | quote }}
- name: CONCURRENCY
value: {{ .Values.ohm.tilerCacheSeed.concurrency | quote }}
value: {{ .Values.ohm.tilerCacheSeed.CONCURRENCY | quote }}
- name: S3_BUCKET
value: {{ .Values.ohm.tilerCacheSeed.s3Bucket | quote }}
value: {{ .Values.ohm.tilerCacheSeed.S3_BUCKET | quote }}
- name: OUTPUT_FILE
value: {{ .Values.ohm.tilerCacheSeed.outputFile | quote }}
value: {{ .Values.ohm.tilerCacheSeed.OUTPUT_FILE | quote }}
envFrom:
- configMapRef:
name: {{ .Release.Name }}-tiler-server-cm
Expand Down
8 changes: 4 additions & 4 deletions values.staging.template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -960,11 +960,11 @@ ohm:
enabled: true
env:
ENVIRONMENT: staging
REGION_NAME: 'us-east-1'
NAMESPACE: 'default' # Namespace to run the job
DOCKER_IMAGE: 'ghcr.io/openhistoricalmap/tiler-server:0.0.1-0.dev.git.1741.h7dadda7' # TODO, this should be automatically updated from tiler server image
REGION_NAME: us-east-1
NAMESPACE: default # Namespace to run the job
DOCKER_IMAGE: ghcr.io/openhistoricalmap/tiler-server:0.0.1-0.dev.git.1741.h7dadda7 # TODO, this should be automatically updated from tiler server image
SQS_QUEUE_URL: {{STAGING_SQS_QUEUE_URL}}
NODEGROUP_TYPE: 'job_large' # Nodegroup type to run the job
NODEGROUP_TYPE: job_large # Nodegroup type to run the job
MAX_ACTIVE_JOBS: 2 # Maximum number of active jobs in high concurrency queue
DELETE_OLD_JOBS_AGE: 600 # Age in seconds to delete old jobs
MIN_ZOOM: 8 # Minimum zoom level to clean and seed cache
Expand Down

0 comments on commit f5c5a59

Please sign in to comment.