From 2198b261e69f529280224965416c213f9fc481ce Mon Sep 17 00:00:00 2001 From: Rub21 Date: Mon, 1 Apr 2024 11:28:23 -0500 Subject: [PATCH] Add api. for web ingress --- osm-seed/templates/web/web-ingress.yaml | 11 +++++++++++ osm-seed/values.yaml | 1 + 2 files changed, 12 insertions(+) diff --git a/osm-seed/templates/web/web-ingress.yaml b/osm-seed/templates/web/web-ingress.yaml index 2747cdd2..bf1b0142 100644 --- a/osm-seed/templates/web/web-ingress.yaml +++ b/osm-seed/templates/web/web-ingress.yaml @@ -15,6 +15,7 @@ spec: {{- else }} - web.{{ .Values.domain }} {{- end }} + - api.{{ .Values.domain }} secretName: {{ template "osm-seed.fullname" . }}-tls-secret rules: - host: {{ if .Values.web.ingressDomain }}{{ .Values.web.ingressDomain }}{{ else }}web.{{ .Values.domain }}{{ end }} @@ -27,4 +28,14 @@ spec: name: {{ template "osm-seed.fullname" . }}-web port: number: 80 + - host: api.{{ .Values.domain }} + http: + paths: + - path: / + pathType: Prefix + backend: + service: + name: {{ template "osm-seed.fullname" . }}-web + port: + number: 80 {{- end }} diff --git a/osm-seed/values.yaml b/osm-seed/values.yaml index 6e601893..431d3c6b 100644 --- a/osm-seed/values.yaml +++ b/osm-seed/values.yaml @@ -564,6 +564,7 @@ nominatimApi: tag: "" serviceAnnotations: {} replicaCount: 1 + ingressDomain: nominatim-api.dev.osmseed.org env: PBF_URL: http://download.geofabrik.de/europe/monaco-latest.osm.pbf REPLICATION_URL: http://download.geofabrik.de/europe/monaco-updates