Skip to content

Commit

Permalink
Update ingress for osmcha
Browse files Browse the repository at this point in the history
  • Loading branch information
Rub21 committed Mar 28, 2024
1 parent c59d760 commit 34b8aff
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 31 deletions.
30 changes: 1 addition & 29 deletions osm-seed/templates/nominatim-api/nominatim-api-ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,32 +27,4 @@ spec:
name: {{ template "osm-seed.fullname" . }}-nominatim-api
port:
number: 80
{{- 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
{{- end }}
8 changes: 6 additions & 2 deletions osm-seed/templates/osmcha-app/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:
{{- if .Values.osmchaApi.ingressDomain }}
- {{ .Values.osmchaApi.ingressDomain }}
{{- else }}
- osmcha.{{ .Values.domain }}
{{- end }}
secretName: {{ template "osm-seed.fullname" . }}-secret-osmcha

rules:
- host: osmcha.{{ .Values.domain }}
- host: {{ if .Values.osmchaApi.ingressDomain }}{{ .Values.osmchaApi.ingressDomain }}{{ else }}osmcha.{{ .Values.domain }}{{ end }}
http:
paths:
- path: /
Expand Down
2 changes: 2 additions & 0 deletions osm-seed/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -609,6 +609,7 @@ overpassApi:
name: ""
tag: ""
serviceAnnotations: {}
ingressDomain: overpass-api.dev.osmseed.org
env:
OVERPASS_META: "yes"
OVERPASS_MODE: init
Expand Down Expand Up @@ -747,6 +748,7 @@ osmchaApi:
image:
name: "ghcr.io/osmcha/osmcha-django"
tag: "61a80e897b45fb9b1a177bf433fb79bfa7fda59d"
ingressDomain: osmcha.dev.osmseed.org
env:
DJANGO_SETTINGS_MODULE: "config.settings.production"
OSMCHA_FRONTEND_VERSION: "v0.86.0-production"
Expand Down

0 comments on commit 34b8aff

Please sign in to comment.