-
Notifications
You must be signed in to change notification settings - Fork 3
/
values.staging.template.yaml
942 lines (918 loc) · 34.9 KB
/
values.staging.template.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
osm-seed:
# ====================================================================================================
# ====================================================================================================
# ==================================Global Configurations=============================================
# ====================================================================================================
# ====================================================================================================
# The version of the image group in osm-seed, get it here: https://hub.docker.com/r/developmentseed/osmseed-web/tags/
# osmSeedVersion: ohm-b8a0ed1
environment: staging
# cloudProvider is provider where you are going to deploy osm-seed, it could be: aws, gcp, minikube
cloudProvider: aws
# ====================================================================================================
# AWS: In case you are using the cloudProvider=aws set the below variables, We are assuming the nodes has a policies access to S3
# ====================================================================================================
AWS_S3_BUCKET: {{STAGING_S3_BUCKET}}
# ====================================================
# AWS: Specify ARN for SSL certificate, currently assumes a single wildcard cert
# ====================================================
AWS_SSL_ARN: {{AWS_SSL_ARN}}
# Specify serviceType.
#
# serviceType can be one of three values: 'NodePort', 'ClusterIP' or 'LoadBalancer'
# Use `NodePort` for local testing on minikube.
#
# The recommended setting is `ClusterIP`, and then following the instructions to
# point a DNS record to the cluster IP address. This will setup the ingress rules
# for all services as subdomains and configure SSL using Lets Encrypt.
#
# If you specify `LoadBalancer` as the service type, if you also specify
# an `AWS_SSL_ARN` that is a wildcart certificate, that will be configured
# as the SSL certificate for your services. Else, you will need to configure
# SSL separately.
serviceType: ClusterIP
createClusterIssuer: true
# Domain that is pointed to the clusterIP
# You will need to create an A record like *.osmseed.example.com pointed to the ClusterIP
# Then, the cluster configuration will setup services at their respective subdomains:
# - web.osmseed.example.com
# - overpass.osmseed.example.com
# - nominatim.osmseed.example.com
# - etc.
domain: staging.openhistoricalmap.org
# ====================================================================================================
# Configuration for Lets Encrypt setup
# ====================================================================================================
# Admin Email address used when generating Lets Encrypt certificates.
# You will be notified of expirations, etc. on this email address.
adminEmail: [email protected]
# ====================================================================================================
# ====================================================================================================
# ==================================Pods Configurations===============================================
# ====================================================================================================
# ====================================================================================================
# ====================================================================================================
# Variables for osm-seed database
# ====================================================================================================
db:
enabled: true
nodeSelector:
enabled: true
label_key: nodegroup_type
label_value: db_large
env:
POSTGRES_DB: {{STAGING_DB}}
POSTGRES_USER: {{STAGING_DB_USER}}
POSTGRES_PASSWORD: {{STAGING_DB_PASSWORD}}
persistenceDisk:
enabled: true
accessMode: ReadWriteOnce
mountPath: /var/lib/postgresql/data
subPath: postgresql-db
# In case cloudProvider: aws
AWS_ElasticBlockStore_volumeID : vol-0d644eb9ea4e8fccf
AWS_ElasticBlockStore_size: 200Gi
resources:
enabled: false
requests:
memory: "6Gi"
cpu: "1500m"
limits:
memory: "6Gi"
cpu: "1700m"
sharedMemorySize: 256Mi
livenessProbeExec: true
postgresqlConfig:
enabled: true
values: |
listen_addresses = '*'
max_connections = 100
shared_buffers = 2GB
work_mem = 20MB
maintenance_work_mem = 512MB
dynamic_shared_memory_type = posix
effective_io_concurrency = 200
max_wal_size = 1GB
min_wal_size = 80MB
random_page_cost = 1.1
effective_cache_size = 6GB
log_min_duration_statement = 3000
log_connections = on
log_disconnections = on
log_duration = off
log_lock_waits = on
log_statement = 'none'
log_timezone = 'Etc/UTC'
datestyle = 'iso, mdy'
timezone = 'Etc/UTC'
lc_messages = 'en_US.utf8'
lc_monetary = 'en_US.utf8'
lc_numeric = 'en_US.utf8'
lc_time = 'en_US.utf8'
default_text_search_config = 'pg_catalog.english'
# Parallelism settings
max_parallel_workers_per_gather = 2
max_parallel_workers = 4
max_worker_processes = 4
parallel_tuple_cost = 0.1
parallel_setup_cost = 1000
min_parallel_table_scan_size = 8MB
min_parallel_index_scan_size = 512kB
session_preload_libraries = 'auto_explain'
auto_explain.log_min_duration = '3s'
# ====================================================================================================
# Variables for osm-seed website
# ====================================================================================================
web:
enabled: true
nodeSelector:
enabled: true
label_key: nodegroup_type
label_value: web_large
replicaCount: 1
# Set staticIp, if you are using cloudProvider=gcp
staticIp: c
serviceAnnotations:
service.beta.kubernetes.io/aws-load-balancer-connection-idle-timeout: "300"
ingressDomain: www.staging.openhistoricalmap.org
env:
MAILER_ADDRESS: {{MAILER_ADDRESS}}
MAILER_DOMAIN: staging.openhistoricalmap.org
MAILER_USERNAME: {{MAILER_USERNAME}}
MAILER_PASSWORD: {{MAILER_PASSWORD}}
OSM_id_key: {{STAGING_ID_APPLICATION}}
OAUTH_CLIENT_ID: {{STAGING_OAUTH_CLIENT_ID}}
OAUTH_KEY: {{STAGING_OAUTH_KEY}}
MAILER_FROM: [email protected]
NOMINATIM_URL: nominatim-api.staging.openhistoricalmap.org
OVERPASS_URL: overpass-api.staging.openhistoricalmap.org
NEW_RELIC_LICENSE_KEY: "none"
NEW_RELIC_APP_NAME: "none"
ORGANIZATION_NAME: OpenHistoricalMap
WEBSITE_STATUS: "online"
# API_TIMEOUT: 600
# WEB_TIMEOUT: 600
resources:
enabled: true
requests:
memory: "2Gi"
cpu: "500m"
limits:
memory: "2Gi"
cpu: "600m"
autoscaling:
enabled: false
minReplicas: 1
maxReplicas: 10
cpuUtilization: 80
sharedMemorySize: 16Mi
# ====================================================================================================
# Variables for memcached. Memcached is used to store session cookies
# ====================================================================================================
memcached:
enabled: true
nodeSelector:
enabled: true
label_key: nodegroup_type
label_value: web_large
resources:
enabled: false
requests:
memory: "8Gi"
cpu: "2"
limits:
memory: "8Gi"
cpu: "2"
# ====================================================================================================
# Variables for osm-seed for osmosis, this configuration os to get the planet dump files from apidb
# ====================================================================================================
planetDump:
enabled: true
nodeSelector:
enabled: true
label_key: nodegroup_type
label_value: web_large
schedule: '0 0 * * *'
env:
OVERWRITE_PLANET_FILE: true
resources:
enabled: false
requests:
memory: "14Gi"
cpu: "4"
limits:
memory: "16Gi"
cpu: "4"
# ====================================================================================================
# Variables for full-history container
# ====================================================================================================
fullHistory:
enabled: false
nodeSelector:
enabled: true
label_key: nodegroup_type
label_value: web_large
schedule: '0 0 * * *'
env:
OVERWRITE_FHISTORY_FILE: false
resources:
enabled: false
requests:
memory: "14Gi"
cpu: "4"
limits:
memory: "16Gi"
cpu: "4"
# ====================================================================================================
# Variables for replication-job, Configuration to create the replication files by, minute, hour, or day
# ====================================================================================================
replicationJob:
enabled: true
nodeSelector:
enabled: false
label_key: nodegroup_type
label_value: web_large
env:
ENABLE_SEND_SLACK_MESSAGE: "true"
SLACK_WEBHOOK_URL: {{OHM_SLACK_WEBHOOK_URL}}
resources:
enabled: false
requests:
memory: "20Gi"
cpu: "8"
limits:
memory: "24Gi"
cpu: "10"
# ====================================================================================================
# Variables for osm-seed to pupulate the apidb
# ====================================================================================================
populateApidb:
enabled: false
nodeSelector:
enabled: true
label_key: nodegroup_type
label_value: web
env:
URL_FILE_TO_IMPORT: 'https://storage.googleapis.com/osm-seed/osm-processor/history-latest-to-import-output.pbf'
resources:
enabled: false
requests:
memory: "1Gi"
cpu: "2"
limits:
memory: "2Gi"
cpu: "2.5"
# ====================================================================================================
# Variables to start a pod to process osm files
# ====================================================================================================
osmProcessor:
enabled: false
nodeSelector:
enabled: true
label_key: nodegroup_type
label_value: web
env:
URL_FILE_TO_PROCESS: 'https://storage.googleapis.com/osm-seed/planet/full-history/history-latest-to-import.pbf'
OSM_FILE_ACTION: simple_pbf
resources:
enabled: false
requests:
memory: "14Gi"
cpu: "4"
limits:
memory: "16Gi"
cpu: "4"
# ====================================================================================================
# Variables for restoring the DB
# ====================================================================================================
dbBackupRestore:
cronjobs:
- name: web-db
enabled: true
schedule: '0 1 * * *'
env:
# backup/restore
DB_ACTION: backup
# Naming backup files
SET_DATE_AT_NAME: true
BACKUP_CLOUD_FOLDER: database/web-api-db
BACKUP_CLOUD_FILE: ohm-api-web-db
AWS_S3_BUCKET: osmseed-staging
# Clean up backups options
CLEANUP_BACKUPS: true
RETENTION_DAYS: '30'
RESTORE_URL_FILE: https://osmseed.s3.amazonaws.com/test.sql.gz
resources:
enabled: false
requests:
memory: '300Mi'
cpu: '0.5'
limits:
memory: '400Mi'
cpu: '0.6'
nodeSelector:
enabled: true
label_key: nodegroup_type
label_value: web_large
- name: tm-db
enabled: true
schedule: '0 1 * * *'
env:
# backup/restore
DB_ACTION: backup
# Naming backup files
SET_DATE_AT_NAME: true
BACKUP_CLOUD_FOLDER: database/tm-db
BACKUP_CLOUD_FILE: ohm-tm-db
AWS_S3_BUCKET: osmseed-staging
resources:
enabled: false
requests:
memory: '300Mi'
cpu: '0.5'
limits:
memory: '400Mi'
cpu: '0.6'
nodeSelector:
enabled: true
label_key: nodegroup_type
label_value: web_large
- name: osmcha-db
enabled: false
schedule: '0 1 * * *'
env:
# backup/restore
DB_ACTION: backup
# Naming backup files
SET_DATE_AT_NAME: 'true'
BACKUP_CLOUD_FOLDER: database/osmcha-db
BACKUP_CLOUD_FILE: osmseed-osmcha-db
AWS_S3_BUCKET: osmseed-staging
# Clean up backups options
CLEANUP_BACKUPS: true
RETENTION_DAYS: '30'
resources:
enabled: false
requests:
memory: '300Mi'
cpu: '0.5'
limits:
memory: '400Mi'
cpu: '0.6'
nodeSelector:
enabled: true
label_key: nodegroup_type
label_value: job
# ====================================================================================================
# Variables for tiler-db
# ====================================================================================================
tilerDb:
enabled: true
env:
POSTGRES_HOST: staging-tiler-db
POSTGRES_DB: tiler-osm
POSTGRES_USER: postgres
POSTGRES_PASSWORD: {{STAGING_TILER_DB_PASSWORD}}
POSTGRES_PORT: 5432
persistenceDisk:
enabled: true
accessMode: ReadWriteOnce
mountPath: /var/lib/postgresql/data
subPath: postgresql-d
# In case cloudProvider: aws
AWS_ElasticBlockStore_volumeID : vol-03e53a4625f0a5c63
AWS_ElasticBlockStore_size: 100Gi
resources:
enabled: false
requests:
memory: "6Gi"
cpu: "1500m"
limits:
memory: "6Gi"
cpu: "1700m"
nodeSelector:
enabled: true
label_key: nodegroup_type
label_value: db_large
postgresqlConfig:
enabled: true
values: |
# PostgreSQL configuration
listen_addresses = '*'
max_connections = 100
shared_buffers = 4GB
work_mem = 128MB
maintenance_work_mem = 1GB
dynamic_shared_memory_type = posix
effective_io_concurrency = 200
max_wal_size = 2GB
min_wal_size = 256MB
random_page_cost = 1.1
effective_cache_size = 12GB
log_min_duration_statement = 15000
log_connections = on
log_disconnections = on
log_duration = off
log_lock_waits = on
log_statement = 'none'
log_timezone = 'Etc/UTC'
datestyle = 'iso, mdy'
timezone = 'Etc/UTC'
lc_messages = 'en_US.utf8'
lc_monetary = 'en_US.utf8'
lc_numeric = 'en_US.utf8'
lc_time = 'en_US.utf8'
default_text_search_config = 'pg_catalog.english'
# Parallelism settings
max_parallel_workers_per_gather = 4
max_parallel_workers = 8
max_worker_processes = 8
parallel_tuple_cost = 0.1
parallel_setup_cost = 1000
min_parallel_table_scan_size = 8MB
min_parallel_index_scan_size = 512kB
session_preload_libraries = 'auto_explain,pg_stat_statements'
auto_explain.log_min_duration = '15s'
# Timeout settings
tcp_keepalives_idle = 300
tcp_keepalives_interval = 60
tcp_keepalives_count = 10
# Disable join options for routes
enable_mergejoin = false
enable_hashjoin = false
# Complete large queries statements
statement_timeout = '600s'
lock_timeout = '60s'
idle_in_transaction_session_timeout = '600s'
# pg_stat_statements settings
pg_stat_statements.max = 10000
pg_stat_statements.track = all
# ====================================================================================================
# Variables for tiler-imposm
# ====================================================================================================
tilerImposm:
enabled: true
nodeSelector:
enabled: true
label_key: nodegroup_type
label_value: web_large
env:
TILER_IMPORT_FROM: osm
TILER_IMPORT_PBF_URL: http://s3.amazonaws.com/planet.openhistoricalmap.org/planet/planet-240726_0003.osm.pbf
REPLICATION_URL: http://s3.amazonaws.com/planet.openhistoricalmap.org/replication/minute/
SEQUENCE_NUMBER: "1497000"
OVERWRITE_STATE: false
UPLOAD_EXPIRED_FILES: true
IMPORT_NATURAL_EARTH: true
IMPORT_OSM_LAND: true
persistenceDisk:
enabled: false
accessMode: ReadWriteOnce
mountPath: /mnt/data
# In case cloudProvider: aws
AWS_ElasticBlockStore_volumeID: vol-05eeb57b8e67b3cd5
AWS_ElasticBlockStore_size: 200Gi
resources:
enabled: false
requests:
memory: "20Gi"
cpu: "8"
limits:
memory: "24Gi"
cpu: "10"
# ====================================================================================================
# Variables for tiler-server
# ====================================================================================================
tilerServer:
enabled: true
nodeSelector:
enabled: false
label_key: nodegroup_type
label_value: web_large
replicaCount: 1
commad: './start.sh'
serviceAnnotations:
service.beta.kubernetes.io/aws-load-balancer-connection-idle-timeout: "300"
ingressDomain: vtiles.staging.openhistoricalmap.org
env:
TILER_SERVER_PORT: 9090
TILER_CACHE_TYPE: s3
TILER_CACHE_BASEPATH: /mnt/data
TILER_CACHE_MAX_ZOOM: 22
# in case s3
TILER_CACHE_REGION: us-east-1
TILER_CACHE_BUCKET: tiler-cache-staging
TILER_CACHE_AWS_ACCESS_KEY_ID: {{STAGING_TILER_CACHE_AWS_ACCESS_KEY_ID}}
TILER_CACHE_AWS_SECRET_ACCESS_KEY: {{STAGING_TILER_CACHE_AWS_SECRET_ACCESS_KEY}}
# In case you use TILER_CACHE_TYPE: file with persistenceDisk
persistenceDisk:
enabled: false
accessMode: ReadWriteOnce
mountPath: /mnt/data
# In case cloudProvider: aws
AWS_ElasticBlockStore_volumeID: vol-0e8b605fe3b16bf08
AWS_ElasticBlockStore_size: 100Gi
resources:
enabled: false
requests:
memory: "2Gi"
cpu: "1"
limits:
memory: "10Gi"
cpu: "2"
autoscaling:
enabled: false
minReplicas: 1
maxReplicas: 2
cpuUtilization: 60
# ====================================================================================================
# Variables for tiler-server cache cleaner, only avaliable in case the TILER_CACHE_TYPE = s3
# ====================================================================================================
tilerServerCacheCleaner:
enabled: true
nodeSelector:
enabled: true
label_key: nodegroup_type
label_value: web_large
replicaCount: 1
command: './cache_cleaner.sh'
resources:
enabled: true
requests:
memory: "1Gi"
cpu: "500m"
limits:
memory: "1Gi"
cpu: "600m"
env:
KILL_PROCESS: manually
MAX_NUM_PS: 4
PROCESS_NAME: tegola
autoscaling:
enabled: false
minReplicas: 1
maxReplicas: 1
cpuUtilization: 90
# ====================================================================================================
# Variables for Tasking Manager DB
# ====================================================================================================
tmDb:
enabled: true
image:
name: "postgis/postgis"
tag: "11-2.5"
nodeSelector:
enabled: true
label_key: nodegroup_type
label_value: db_large
env:
POSTGRES_DB: tm
POSTGRES_PASSWORD: {{STAGING_TM_DB_PASSWORD}}
POSTGRES_USER: postgres
persistenceDisk:
enabled: true
accessMode: ReadWriteOnce
mountPath: /var/lib/postgresql/data
subPath: postgresql-d
AWS_ElasticBlockStore_volumeID: vol-077f1a9f62a1951e8
AWS_ElasticBlockStore_size: 50Gi
resources:
enabled: false
requests:
memory: "1Gi"
cpu: "2"
limits:
memory: "2Gi"
cpu: "2"
# ====================================================================================================
# Variables for Tasking Manager API
# ====================================================================================================
tmApi:
enabled: true
nodeSelector:
enabled: true
label_key: nodegroup_type
label_value: web_large
replicaCount: 1
staticIp: c
serviceAnnotations:
service.beta.kubernetes.io/aws-load-balancer-connection-idle-timeout: "300"
ingressDomain: tm-api.staging.openhistoricalmap.org
env:
TM_ORG_NAME: 'OpenHistoricalMap'
TM_ORG_CODE: 'OHM'
TM_ORG_URL: 'openhistoricalmap.org'
TM_ORG_PRIVACY_POLICY_URL: 'staging.openhistoricalmap.org/copyright'
TM_ORG_GITHUB: 'github.com/openhistoricalmap'
OSM_SERVER_URL: 'https://staging.openhistoricalmap.org'
OSM_NOMINATIM_SERVER_URL: 'https://nominatim-api.staging.openhistoricalmap.org'
OSM_REGISTER_URL: 'https://staging.openhistoricalmap.org/user/new'
ID_EDITOR_URL: 'https://staging.openhistoricalmap.org/edit?editor=id'
POTLATCH2_EDITOR_URL: 'https://staging.openhistoricalmap.org/edit?editor=potlatch2'
TM_SECRET: {{STAGING_TM_API_SECRET}}
TM_CONSUMER_KEY: {{STAGING_TM_API_CONSUMER_KEY}}
TM_CONSUMER_SECRET: {{STAGING_TM_API_CONSUMER_SECRET}}
TM_EMAIL_FROM_ADDRESS: '[email protected]'
TM_SMTP_HOST: 'email-smtp.us-east-1.amazonaws.com'
TM_SMTP_PORT: 25
TM_SMTP_USER: {{MAILER_USERNAME}}
TM_SMTP_PASSWORD: {{MAILER_PASSWORD}}
TM_DEFAULT_LOCALE: 'en'
TM_APP_API_URL: 'https://tm-api.staging.openhistoricalmap.org'
TM_APP_BASE_URL: 'https://tasks-staging.openhistoricalmap.org'
TM_IMPORT_MAX_FILESIZE: 3000000
TM_MAX_AOI_AREA: 15000
TM_APP_API_VERSION: v2
# The following environment variables are for future versions of TM
TM_CLIENT_ID: {{STAGING_TM_CLIENT_ID}}
TM_CLIENT_SECRET: {{STAGING_TM_CLIENT_SECRET}}
TM_DEFAULT_CHANGESET_COMMENT: STAGING
TM_REDIRECT_URI: https://tm-api.staging.openhistoricalmap.org/authorized
TM_SCOPE: 'read_prefs write_api'
# Add extra info
TM_EMAIL_CONTACT_ADDRESS: [email protected]
TM_ORG_FB: https://www.facebook.com/openhistoricalmap
TM_ORG_INSTAGRAM: https://www.openhistoricalmap.org
TM_ORG_TWITTER: https://x.com/OpenHistMap
TM_ORG_YOUTUBE: https://www.youtube.com/playlist?list=PLOi35w6_Hpx_CYdYBUpPeuiJ1djn5-wIx
resources:
enabled: false
requests:
memory: "1Gi"
cpu: "2"
limits:
memory: "2Gi"
cpu: "2"
# ====================================================================================================
# Variables for nominatim api
# ====================================================================================================
nominatimApi:
enabled: false
serviceAnnotations:
service.beta.kubernetes.io/aws-load-balancer-connection-idle-timeout: "300"
ingressDomain: nominatim-api.staging.openhistoricalmap.org
replicaCount: 1
env:
PBF_URL: https://s3.amazonaws.com/planet.openhistoricalmap.org/planet/planet-240612_0002.osm.pbf
REPLICATION_URL: http://planet.openhistoricalmap.org.s3.amazonaws.com/replication/minute
REPLICATION_UPDATE_INTERVAL: 60
REPLICATION_RECHECK_INTERVAL: 30
FREEZE: false
IMPORT_WIKIPEDIA: false
IMPORT_US_POSTCODES: false
IMPORT_GB_POSTCODES: false
IMPORT_TIGER_ADDRESSES: false
THREADS: 8
NOMINATIM_PASSWORD: {{STAGING_NOMINATIM_PG_PASSWORD}}
PGDATA: /var/lib/postgresql/14/main
NOMINATIM_ADDRESS_LEVEL_CONFIG_URL: https://raw.githubusercontent.com/OpenHistoricalMap/nominatim-ui/master/address-levels.json
UPDATE_MODE: continuous
OSMSEED_WEB_API_DOMAIN: www.openhistoricalmap.org
resources:
enabled: false
requests:
memory: '1Gi'
cpu: '2'
limits:
memory: '2Gi'
cpu: '2'
persistenceDisk:
enabled: true
accessMode: ReadWriteOnce
mountPath: /var/lib/postgresql/14/main
subPath: nominatim-pgdata
# Minikube
localVolumeHostPath: /mnt/nominatim-db-data
localVolumeSize: 10Gi
# AWS
AWS_ElasticBlockStore_volumeID: vol-0a530cc12fd745545
AWS_ElasticBlockStore_size: 100Gi
# GCP
GCP_gcePersistentDisk_pdName: osmseed-disk-nominatim_db-v1
GCP_gcePersistentDisk_size: 50Gi
nodeSelector:
enabled: true
label_key: nodegroup_type
label_value: job_xlarge
# ====================================================================================================
# Variables for overpass-api
# ====================================================================================================
overpassApi:
enabled: false
serviceAnnotations:
service.beta.kubernetes.io/aws-load-balancer-connection-idle-timeout: "300"
ingressDomain: overpass-api.staging.openhistoricalmap.org
env:
OVERPASS_META: 'attic'
OVERPASS_MODE: 'init'
OVERPASS_PLANET_URL: https://s3.amazonaws.com/planet.openhistoricalmap.org/planet/planet-240612_0002.osm.pbf
OVERPASS_DIFF_URL: https://s3.amazonaws.com/planet.openhistoricalmap.org/replication/minute
OVERPASS_RULES_LOAD: '10'
OVERPASS_PLANET_PREPROCESS: 'mv /db/planet.osm.bz2 /db/planet.osm.pbf && osmium cat -o /db/planet.osm.bz2 /db/planet.osm.pbf && rm /db/planet.osm.pbf'
OVERPASS_REPLICATION_SEQUENCE_NUMBER: '1258000'
OVERPASS_ALLOW_DUPLICATE_QUERIES: 'yes'
persistenceDisk:
enabled: true
accessMode: ReadWriteOnce
AWS_ElasticBlockStore_volumeID: vol-000676289c153e301
AWS_ElasticBlockStore_size: 100Gi
resources:
enabled: false
requests:
memory: '8Gi'
cpu: '2'
limits:
memory: '8Gi'
cpu: '2'
nodeSelector:
enabled: true
label_key: nodegroup_type
label_value: job_xlarge
# ====================================================================================================
# Variables for taginfo
# ====================================================================================================
taginfo:
enabled: true
serviceAnnotations:
service.beta.kubernetes.io/aws-load-balancer-connection-idle-timeout: "300"
ingressDomain: taginfo.staging.openhistoricalmap.org
env:
URL_PLANET_FILE_STATE: https://s3.amazonaws.com/planet.openhistoricalmap.org/planet/state.txt
URL_HISTORY_PLANET_FILE_STATE: https://s3.amazonaws.com/planet.openhistoricalmap.org/planet/full-history/state.txt
URL_PLANET_FILE: 'none'
URL_HISTORY_PLANET_FILE: 'none'
TIME_UPDATE_INTERVAL: 7d
OVERWRITE_CONFIG_URL: https://raw.githubusercontent.com/OpenHistoricalMap/ohm-deploy/staging/images/taginfo/taginfo-config-staging.json
TAGINFO_PROJECT_REPO: https://github.com/OpenHistoricalMap/taginfo-projects.git
DOWNLOAD_DB: 'languages wiki'
CREATE_DB: 'db projects chronology'
ENVIRONMENT: staging
AWS_S3_BUCKET: taginfo
INTERVAL_DOWNLOAD_DATA: 7d
resources:
enabled: false
requests:
memory: '1Gi'
cpu: '2'
limits:
memory: '2Gi'
cpu: '2'
nodeSelector:
enabled: true
label_key: nodegroup_type
label_value: web_large
cronjob:
enabled: false
schedule: "0 2 */3 * *"
nodeSelector:
enabled: true
label_key: nodegroup_type
label_value: job_xlarge
resources:
enabled: true
requests:
memory: "13Gi"
cpu: "3600m"
limits:
memory: "14Gi"
cpu: "3800m"
# ====================================================================================================
# Variables for osm-simple-metrics
# ====================================================================================================
osmSimpleMetrics:
enabled: false
schedule: '0 2 * * *'
resources:
enabled: false
requests:
memory: '1Gi'
cpu: '2'
limits:
memory: '2Gi'
cpu: '2'
nodeSelector:
enabled: true
label_key: nodegroup_type
label_value: job
# ====================================================================================================
# Variables for replication nomitoring task
# ====================================================================================================
monitoringReplication:
enabled: false
schedule: '*/30 * * * *'
env:
CREATE_MISSING_FILES: "empty"
REPLICATION_SEQUENCE_NUMBER: "000000"
resources:
enabled: false
requests:
memory: '1Gi'
cpu: '2'
limits:
memory: '2Gi'
cpu: '2'
nodeSelector:
enabled: true
label_key: nodegroup_type
label_value: web
# ====================================================================================================
# Variables for changeset-replication-job, Configuration to create the replication files by, minute, hour, or day
# ====================================================================================================
changesetReplicationJob:
enabled: false
resources:
enabled: false
requests:
memory: '20Gi'
cpu: '8'
limits:
memory: '24Gi'
cpu: '10'
nodeSelector:
enabled: true
label_key: nodegroup_type
label_value: web
# ====================================================================================================
# Variables for osmcha web
# ====================================================================================================
osmchaWeb:
enabled: false
# ====================================================================================================
# Variables for osmcha Api, We hard code the container id.
# ====================================================================================================
osmchaApi:
enabled: false
image:
name: "ghcr.io/openhistoricalmap/osmcha-django"
tag: "a1bcea85dc1f7c27566c20bafe7fff7aaa1e38a4"
ingressDomain: osmcha.staging.openhistoricalmap.org
env:
DJANGO_SETTINGS_MODULE: "config.settings.production"
OSMCHA_FRONTEND_VERSION: "v0.86.0-production"
DJANGO_SECRET_KEY: {{STAGING_OSMCHA_DJANGO_SECRET_KEY}}
OAUTH_OSM_KEY: {{STAGING_OSMCHA_API_CONSUMER_KEY}}
OAUTH_OSM_SECRET: {{STAGING_OSMCHA_API_CONSUMER_SECRET}}
DJANGO_SECURE_SSL_REDIRECT: "False"
OSM_SERVER_URL: https://www.openhistoricalmap.org
OAUTH_REDIRECT_URI: https://osmcha.staging.openhistoricalmap.org/oauth-landing.html
OSM_PLANET_BASE_URL: https://s3.amazonaws.com/planet.openhistoricalmap.org/replication/changesets/
## frontend
OSMCHA_URL: https://osmcha.staging.openhistoricalmap.org
OSMCHA_API_URL: www.openhistoricalmap.org
REACT_APP_OSM_URL: https://www.openhistoricalmap.org
REACT_APP_OSM_API: https://www.openhistoricalmap.org/api/0.6
REACT_APP_OVERPASS_BASE: //overpass-api.openhistoricalmap.org/api/interpreter
REACT_APP_ENABLE_REAL_CHANGESETS: 0
REACT_APP_MAPBOX_ACCESS_TOKEN: {{STAGING_OSMCHA_REACT_APP_MAPBOX_ACCESS_TOKEN}}
resources:
enabled: false
requests:
memory: "512Mi"
cpu: "1"
limits:
memory: "512Mi"
cpu: "1"
nodeSelector:
enabled: false
label_key: nodegroup_type
label_value: web
# ====================================================================================================
# Variables for osmcha DB
# ====================================================================================================
osmchaDb:
enabled: false
image:
name: "developmentseed/osmseed-osmcha-db"
tag: "0.1.0-n767.h0090e97"
env:
POSTGRES_DB: osmcha
POSTGRES_USER: postgres
POSTGRES_PASSWORD: {{STAGING_OSMCHA_PG_PASSWORD}}
resources:
enabled: false
requests:
memory: "20Gi"
cpu: "8"
limits:
memory: "24Gi"
cpu: "10"
persistenceDisk:
enabled: false
accessMode: ReadWriteOnce
mountPath: /var/lib/postgresql/data
# Minikube
localVolumeHostPath: /mnt/db-data/osmcha-data
localVolumeSize: 10Gi
# AWS
AWS_ElasticBlockStore_volumeID: vol-06f981afe8def5915
AWS_ElasticBlockStore_size: 10Gi
# GCP
GCP_gcePersistentDisk_pdName: osmseed-osmcha-disk--v1
GCP_gcePersistentDisk_size: 50Gi
nodeSelector:
enabled: false
# ====================================================================================================
# Planet files server
# ====================================================================================================
planetFiles:
enabled: false