Skip to content

Commit

Permalink
Update ingress for nominatim and overpass api
Browse files Browse the repository at this point in the history
  • Loading branch information
Rub21 committed Mar 28, 2024
1 parent b8e8f5e commit c59d760
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 11 deletions.
44 changes: 38 additions & 6 deletions osm-seed/templates/nominatim-api/nominatim-api-ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,17 @@ metadata:
kubernetes.io/ingress.class: nginx
cert-manager.io/cluster-issuer: letsencrypt-prod-issuer
spec:
ingressClassName: nginx
tls:
- hosts:
- nominatim.{{ .Values.domain }}
secretName: {{ template "osm-seed.fullname" . }}-secret-nominatim

- hosts:
{{- if .Values.nominatimApi.ingressDomain }}
- {{ .Values.nominatimApi.ingressDomain }}
{{- else }}
- nominatim-api.{{ .Values.domain }}
{{- end }}
secretName: {{ template "osm-seed.fullname" . }}-secret-nominatim
rules:
- host: nominatim.{{ .Values.domain }}
- host: {{ if .Values.nominatimApi.ingressDomain }}{{ .Values.nominatimApi.ingressDomain }}{{ else }}nominatim-api.{{ .Values.domain }}{{ end }}
http:
paths:
- path: /
Expand All @@ -23,4 +27,32 @@ spec:
name: {{ template "osm-seed.fullname" . }}-nominatim-api
port:
number: 80
{{- end }}
{{- end }}
# apiVersion: networking.k8s.io/v1
# kind: Ingress
# metadata:
# name: {{ template "osm-seed.fullname" . }}-ingress
# annotations:
# kubernetes.io/ingress.class: nginx
# cert-manager.io/cluster-issuer: letsencrypt-prod-issuer
# spec:
# ingressClassName: nginx
# tls:
# - hosts:
# {{- if .Values.web.ingressDomain }}
# - {{ .Values.web.ingressDomain }}
# {{- else }}
# - web.{{ .Values.domain }}
# {{- end }}
# secretName: {{ template "osm-seed.fullname" . }}-tls-secret
# rules:
# - host: {{ if .Values.web.ingressDomain }}{{ .Values.web.ingressDomain }}{{ else }}web.{{ .Values.domain }}{{ end }}
# http:
# paths:
# - path: /
# pathType: Prefix
# backend:
# service:
# name: {{ template "osm-seed.fullname" . }}-web
# port:
# number: 80
14 changes: 9 additions & 5 deletions osm-seed/templates/overpass-api/overpass-api-ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,17 @@ metadata:
kubernetes.io/ingress.class: nginx
cert-manager.io/cluster-issuer: letsencrypt-prod-issuer
spec:
ingressClassName: nginx
tls:
- hosts:
- overpass.{{ .Values.domain }}
secretName: {{ template "osm-seed.fullname" . }}-secret-overpass

- hosts:
{{- if .Values.overpassApi.ingressDomain }}
- {{ .Values.overpassApi.ingressDomain }}
{{- else }}
- overpass-api.{{ .Values.domain }}
{{- end }}
secretName: {{ template "osm-seed.fullname" . }}-secret-overpass
rules:
- host: overpass.{{ .Values.domain }}
- host: {{ if .Values.overpassApi.ingressDomain }}{{ .Values.overpassApi.ingressDomain }}{{ else }}overpass-api.{{ .Values.domain }}{{ end }}
http:
paths:
- path: /
Expand Down

0 comments on commit c59d760

Please sign in to comment.