From d6c2005e19a3cc862d7eeefbce0570ae3e951ed1 Mon Sep 17 00:00:00 2001 From: Gerald Pape Date: Tue, 27 Aug 2024 21:17:46 +0200 Subject: [PATCH] Add overpass (#73) --- apps/kustomization.yaml | 1 + apps/overpass/kustomization.yaml | 8 ++++ apps/overpass/overpass.yaml | 67 ++++++++++++++++++++++++++++++++ 3 files changed, 76 insertions(+) create mode 100644 apps/overpass/kustomization.yaml create mode 100644 apps/overpass/overpass.yaml diff --git a/apps/kustomization.yaml b/apps/kustomization.yaml index 01dfe026..8afcd4ab 100644 --- a/apps/kustomization.yaml +++ b/apps/kustomization.yaml @@ -5,3 +5,4 @@ resources: - ./crashes - ./traffics - ./muenster-update +- ./overpass diff --git a/apps/overpass/kustomization.yaml b/apps/overpass/kustomization.yaml new file mode 100644 index 00000000..093af23f --- /dev/null +++ b/apps/overpass/kustomization.yaml @@ -0,0 +1,8 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization + +namespace: overpass + +resources: +- ../../base/namespace-pss-restricted +- overpass.yaml diff --git a/apps/overpass/overpass.yaml b/apps/overpass/overpass.yaml new file mode 100644 index 00000000..837c34b2 --- /dev/null +++ b/apps/overpass/overpass.yaml @@ -0,0 +1,67 @@ +apiVersion: source.toolkit.fluxcd.io/v1 +kind: HelmRepository +metadata: + name: remikalbe-overpass-api +spec: + interval: 320m + url: https://remikalbe.github.io/overpass-api-helm-chart + +--- +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: overpass-api +spec: + chart: + spec: + chart: overpass-api + interval: 90m0s + sourceRef: + kind: HelmRepository + name: remikalbe-overpass-api + version: 0.3.4 + interval: 30m0s + releaseName: overpass-api + targetNamespace: overpass + # https://github.com/RemiKalbe/overpass-api-helm-chart/blob/overpass-api-0.3.4/charts/overpass-api-chart/values.yaml + values: + overpassMeta: "no" + updateJob: + schedule: "15 12 1 1 1" + planetUrl: "https://download.geofabrik.de/europe/germany/nordrhein-westfalen/muenster-regbez-latest.osm.bz2" + diffUrl: "https://planet.openstreetmap.org/replication/hour/" + updateFrequency: "hour" + rulesLoad: 1 + apiService: + replicaCount: 1 + persistence: + enabled: true + accessMode: ReadWriteMany + size: 10Gi + storageClass: "hcloud-volumes" + annotations: {} + resources: + limits: + cpu: 1 + memory: 2Gi + requests: + cpu: 500m + memory: 1Gi + + # + # Ingress Configuration + # + ingress: + enabled: true + className: "traefik" + annotations: + cert-manager.io/cluster-issuer: letsencrypt-c4m + hosts: + - host: overpass-ms.codeformuenster.org + paths: + - path: / + pathType: ImplementationSpecific + tls: + - hosts: + - overpass-ms.codeformuenster.org + secretName: overpass-api-tls