Skip to content

Commit

Permalink
regen k8s configs
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelkirk committed Feb 7, 2024
1 parent 8b402be commit 77076a0
Show file tree
Hide file tree
Showing 10 changed files with 104 additions and 0 deletions.
4 changes: 4 additions & 0 deletions builds/planet/env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,7 @@ export HEADWAY_ENABLE_TRANSIT_ROUTING=1
export HEADWAY_TRANSIT_AREAS="Barcelona LosAngeles PugetSound"
export PELIAS_ELASTICSEARCH_MEMORY_REQUEST=8Gi
export VALHALLA_MEMORY_REQUEST=4Gi
export HEADWAY_ABOUT_URL="https://about.maps.earth"
export HEADWAY_ABOUT_LINK_TEXT="About maps.earth"
export HEADWAY_CONTACT_URL="mailto:[email protected]?subject=Hello,%20Earth"
export HEADWAY_CONTACT_LINK_TEXT="Contact Us"
4 changes: 4 additions & 0 deletions builds/seattle/env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,7 @@ export HEADWAY_TRANSIT_AREAS=Seattle
export HEADWAY_BBOX="-122.462 47.394 -122.005 47.831"
export PELIAS_ELASTICSEARCH_MEMORY_REQUEST=750Mi
export VALHALLA_MEMORY_REQUEST=250Mi
export HEADWAY_ABOUT_URL="https://about.maps.earth"
export HEADWAY_ABOUT_LINK_TEXT="About maps.earth"
export HEADWAY_CONTACT_URL="mailto:[email protected]?subject=Hello,%20Earth"
export HEADWAY_CONTACT_LINK_TEXT="Contact Us"
4 changes: 4 additions & 0 deletions k8s/_template/deployment-config.yaml.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ data:
public-url: ${HEADWAY_PUBLIC_URL}
bbox: "${HEADWAY_BBOX}"
enable-transit-routing: "${HEADWAY_ENABLE_TRANSIT_ROUTING}"
www-about-url: "${HEADWAY_ABOUT_URL}"
www-about-link-text: "${HEADWAY_ABOUT_LINK_TEXT}"
www-contact-url: "${HEADWAY_CONTACT_URL}"
www-contact-link-text: "${HEADWAY_CONTACT_LINK_TEXT}"
terrain-source-url: ${HEADWAY_K8S_ARTIFACT_ROOT}/${HEADWAY_DATA_TAG}/terrain.mbtiles
landcover-source-url: ${HEADWAY_K8S_ARTIFACT_ROOT}/${HEADWAY_DATA_TAG}/landcover.mbtiles
areamap-source-url: ${HEADWAY_K8S_ARTIFACT_ROOT}/${HEADWAY_DATA_TAG}/${HEADWAY_AREA_TAG}/${HEADWAY_AREA}.mbtiles
Expand Down
20 changes: 20 additions & 0 deletions k8s/_template/frontend-deployment.yaml.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,26 @@ spec:
configMapKeyRef:
name: deployment-config
key: enable-transit-routing
- name: HEADWAY_ABOUT_URL
valueFrom:
configMapKeyRef:
name: deployment-config
key: www-about-url
- name: HEADWAY_ABOUT_LINK_TEXT
valueFrom:
configMapKeyRef:
name: deployment-config
key: www-about-link-text
- name: HEADWAY_CONTACT_URL
valueFrom:
configMapKeyRef:
name: deployment-config
key: www-contact-url
- name: HEADWAY_CONTACT_LINK_TEXT
valueFrom:
configMapKeyRef:
name: deployment-config
key: www-contact-link-text
resources:
limits:
memory: 100Mi
Expand Down
4 changes: 4 additions & 0 deletions k8s/configs/planet-dev/deployment-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ data:
public-url: https://maps.earth
bbox: ""
enable-transit-routing: "1"
www-about-url: "https://about.maps.earth"
www-about-link-text: "About maps.earth"
www-contact-url: "mailto:[email protected]?subject=Hello,%20Earth"
www-contact-link-text: "Contact Us"
terrain-source-url: https://data.example.com/0.6.0/terrain.mbtiles
landcover-source-url: https://data.example.com/0.6.0/landcover.mbtiles
areamap-source-url: https://data.example.com/0.6.0/maps-earth-planet-v1.36/maps-earth-planet-v1.36.mbtiles
Expand Down
20 changes: 20 additions & 0 deletions k8s/configs/planet-dev/frontend-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,26 @@ spec:
configMapKeyRef:
name: deployment-config
key: enable-transit-routing
- name: HEADWAY_ABOUT_URL
valueFrom:
configMapKeyRef:
name: deployment-config
key: www-about-url
- name: HEADWAY_ABOUT_LINK_TEXT
valueFrom:
configMapKeyRef:
name: deployment-config
key: www-about-link-text
- name: HEADWAY_CONTACT_URL
valueFrom:
configMapKeyRef:
name: deployment-config
key: www-contact-url
- name: HEADWAY_CONTACT_LINK_TEXT
valueFrom:
configMapKeyRef:
name: deployment-config
key: www-contact-link-text
resources:
limits:
memory: 100Mi
Expand Down
4 changes: 4 additions & 0 deletions k8s/configs/planet/deployment-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ data:
public-url: https://maps.earth
bbox: ""
enable-transit-routing: "1"
www-about-url: "https://about.maps.earth"
www-about-link-text: "About maps.earth"
www-contact-url: "mailto:[email protected]?subject=Hello,%20Earth"
www-contact-link-text: "Contact Us"
terrain-source-url: https://data.example.com/0.6.0/terrain.mbtiles
landcover-source-url: https://data.example.com/0.6.0/landcover.mbtiles
areamap-source-url: https://data.example.com/0.6.0/maps-earth-planet-v1.36/maps-earth-planet-v1.36.mbtiles
Expand Down
20 changes: 20 additions & 0 deletions k8s/configs/planet/frontend-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,26 @@ spec:
configMapKeyRef:
name: deployment-config
key: enable-transit-routing
- name: HEADWAY_ABOUT_URL
valueFrom:
configMapKeyRef:
name: deployment-config
key: www-about-url
- name: HEADWAY_ABOUT_LINK_TEXT
valueFrom:
configMapKeyRef:
name: deployment-config
key: www-about-link-text
- name: HEADWAY_CONTACT_URL
valueFrom:
configMapKeyRef:
name: deployment-config
key: www-contact-url
- name: HEADWAY_CONTACT_LINK_TEXT
valueFrom:
configMapKeyRef:
name: deployment-config
key: www-contact-link-text
resources:
limits:
memory: 100Mi
Expand Down
4 changes: 4 additions & 0 deletions k8s/configs/seattle-dev/deployment-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ data:
public-url: https://seattle.maps.earth
bbox: "-122.462 47.394 -122.005 47.831"
enable-transit-routing: "1"
www-about-url: "https://about.maps.earth"
www-about-link-text: "About maps.earth"
www-contact-url: "mailto:[email protected]?subject=Hello,%20Earth"
www-contact-link-text: "Contact Us"
terrain-source-url: https://data.example.com/dev/terrain.mbtiles
landcover-source-url: https://data.example.com/dev/landcover.mbtiles
areamap-source-url: https://data.example.com/dev/seattle-latest/Seattle.mbtiles
Expand Down
20 changes: 20 additions & 0 deletions k8s/configs/seattle-dev/frontend-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,26 @@ spec:
configMapKeyRef:
name: deployment-config
key: enable-transit-routing
- name: HEADWAY_ABOUT_URL
valueFrom:
configMapKeyRef:
name: deployment-config
key: www-about-url
- name: HEADWAY_ABOUT_LINK_TEXT
valueFrom:
configMapKeyRef:
name: deployment-config
key: www-about-link-text
- name: HEADWAY_CONTACT_URL
valueFrom:
configMapKeyRef:
name: deployment-config
key: www-contact-url
- name: HEADWAY_CONTACT_LINK_TEXT
valueFrom:
configMapKeyRef:
name: deployment-config
key: www-contact-link-text
resources:
limits:
memory: 100Mi
Expand Down

0 comments on commit 77076a0

Please sign in to comment.