Skip to content

Commit a54ccb7

Browse files
authored
Moving Minute/Changeset replication pods to utils node group (#734)
* Move pods to node utils
1 parent 4c24ca6 commit a54ccb7

2 files changed

Lines changed: 16 additions & 8 deletions

File tree

images/tiler-imposm/start.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,14 @@ TRACKING_FILE="$WORKDIR/uploaded_files.log"
2626
# Create config map for imposm
2727
python build_imposm3_config.py
2828

29+
# Upload compiled imposm config to S3 for the tiler-monitor to read
30+
if [ -n "$AWS_S3_BUCKET" ]; then
31+
log_message "Uploading imposm3.json to S3..."
32+
aws s3 cp ./config/imposm3.json "${AWS_S3_BUCKET}/${BUCKET_IMPOSM_FOLDER}/imposm3.json" --acl public-read && \
33+
log_message "imposm3.json uploaded to S3 successfully." || \
34+
log_message "Warning: Failed to upload imposm3.json to S3. Monitor will use cached version."
35+
fi
36+
2937
# Create config file for imposm
3038
cat <<EOF >"$WORKDIR/config.json"
3139
{

values.production.template.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -339,11 +339,11 @@ osm-seed:
339339
nodeSelector:
340340
enabled: false
341341
label_key: nodegroup_type
342-
label_value: web_helpers_medium
342+
label_value: utils
343343
nodeAffinity:
344344
enabled: true
345345
key: "nodegroup_type"
346-
values: ["web"]
346+
values: ["utils"]
347347
# ====================================================================================================
348348
# Variables for osm-seed to pupulate the apidb
349349
# ====================================================================================================
@@ -755,11 +755,11 @@ osm-seed:
755755
nodeSelector:
756756
enabled: false
757757
label_key: nodegroup_type
758-
label_value: web
758+
label_value: utils
759759
nodeAffinity:
760760
enabled: true
761761
key: "nodegroup_type"
762-
values: ["database"]
762+
values: ["utils"]
763763
# ====================================================================================================
764764
# Variables for Tasking Manager API
765765
# ====================================================================================================
@@ -820,11 +820,11 @@ osm-seed:
820820
nodeSelector:
821821
enabled: false
822822
label_key: nodegroup_type
823-
label_value: web
823+
label_value: utils
824824
nodeAffinity:
825825
enabled: true
826826
key: "nodegroup_type"
827-
values: ["web"]
827+
values: ["utils"]
828828
# ====================================================================================================
829829
# Variables for nominatim api
830830
# ====================================================================================================
@@ -1069,11 +1069,11 @@ osm-seed:
10691069
nodeSelector:
10701070
enabled: false
10711071
label_key: nodegroup_type
1072-
label_value: web
1072+
label_value: utils
10731073
nodeAffinity:
10741074
enabled: true
10751075
key: "nodegroup_type"
1076-
values: ["web"]
1076+
values: ["utils"]
10771077
# ====================================================================================================
10781078
# Variables for osmcha web
10791079
# ====================================================================================================

0 commit comments

Comments
 (0)