Skip to content

Commit b1d7fb7

Browse files
committed
allow services to specify additional service annotations in values, allow for setting timeout on AWS load balancers
1 parent c774ddc commit b1d7fb7

File tree

7 files changed

+26
-2
lines changed

7 files changed

+26
-2
lines changed

osm-seed/templates/nominatim-api/nominatim-api-service.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ metadata:
2020
{{- else }}
2121
fake.annotation: fake
2222
{{- end }}
23+
{{- with .Values.nominatimApi.serviceAnnotations }}
24+
{{- toYaml . | nindent 4 }}
25+
{{- end }}
2326
spec:
2427
type: {{ .Values.serviceType }}
2528
ports:

osm-seed/templates/overpass-api/overpass-api-service.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ metadata:
2020
{{- else }}
2121
fake.annotation: fake
2222
{{- end }}
23+
{{- with .Values.overpassApi.serviceAnnotations }}
24+
{{- toYaml . | nindent 4 }}
25+
{{- end }}
2326
spec:
2427
type: {{ .Values.serviceType }}
2528
ports:

osm-seed/templates/taginfo/taginfo-service.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ metadata:
2020
{{- else }}
2121
fake.annotation: fake
2222
{{- end }}
23+
{{- with .Values.taginfo.serviceAnnotations }}
24+
{{- toYaml . | nindent 4 }}
25+
{{- end }}
2326
spec:
2427
type: {{ .Values.serviceType }}
2528
ports:

osm-seed/templates/tasking-manager-api/tasking-manager-api-service.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ metadata:
2020
{{- else }}
2121
fake.annotation: fake
2222
{{- end }}
23+
{{- with .Values.tmApi.serviceAnnotations }}
24+
{{- toYaml . | nindent 4 }}
25+
{{- end }}
2326
spec:
2427
type: {{ .Values.serviceType }}
2528
ports:

osm-seed/templates/tiler-server/tiler-server-service.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ metadata:
2020
{{- else }}
2121
fake.annotation: fake
2222
{{- end }}
23+
{{- with .Values.tilerServer.serviceAnnotations }}
24+
{{- toYaml . | nindent 4 }}
25+
{{- end }}
2326
spec:
2427
type: {{ .Values.serviceType }}
2528
ports:

osm-seed/templates/web/web-service.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ metadata:
2020
{{- else }}
2121
fake.annotation: fake
2222
{{- end }}
23+
{{- with .Values.web.serviceAnnotations }}
24+
{{- toYaml . | nindent 4 }}
25+
{{- end }}
2326

2427
spec:
2528
type: {{ .Values.serviceType }}

osm-seed/values.yaml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ web:
120120
name: ''
121121
tag: ''
122122
replicaCount: 1
123+
serviceAnnotations: {}
123124
env:
124125
MAILER_ADDRESS: smtp.gmail.com
125126
MAILER_DOMAIN: gmail.com
@@ -386,6 +387,7 @@ tilerServer:
386387
name: ''
387388
tag: ''
388389
replicaCount: 1
390+
serviceAnnotations: {}
389391
env:
390392
TILER_SERVER_PORT: 9090
391393
TILER_CACHE_TYPE: s3 #In case TILER_CACHE_TYPE=s3, the kubernetes teemplate will come up with a deployment pod
@@ -478,6 +480,7 @@ tmApi:
478480
nodeSelector:
479481
enabled: false
480482
replicaCount: 1
483+
serviceAnnotations: {}
481484
env:
482485
POSTGRES_HOST: 'tm'
483486
POSTGRES_DB: 'tm'
@@ -568,7 +571,8 @@ nominatimDb:
568571
# Variables for nominatim api
569572
# ====================================================================================================
570573
nominatimApi:
571-
enabled: false
574+
serviceAnnotations: {}
575+
enabled: true
572576
replicaCount: 1
573577
env:
574578
BASE_URL: https://nominatim.osm-seed.test
@@ -593,6 +597,7 @@ overpassApi:
593597
image:
594598
name: ''
595599
tag: ''
600+
serviceAnnotations: {}
596601
env:
597602
OVERPASS_META: 'yes'
598603
OVERPASS_MODE: init
@@ -632,6 +637,7 @@ taginfo:
632637
image:
633638
name: ''
634639
tag: ''
640+
serviceAnnotations: {}
635641
env:
636642
URL_PLANET_FILE_STATE: https://planet.osm.org/pbf/state.txt
637643
URL_HISTORY_PLANET_FILE_STATE: https://planet.osm.org/pbf/full-history/state.txt
@@ -654,4 +660,4 @@ taginfo:
654660
memory: '2Gi'
655661
cpu: '2'
656662
nodeSelector:
657-
enabled: false
663+
enabled: false

0 commit comments

Comments
 (0)