Self-Hosting GraphHopper on Kubernetes with OSM Data

Self-Hosting GraphHopper on Kubernetes with OSM Data Answer-First: Self-hosting GraphHopper on Kubernetes with OpenStreetMap (OSM) data requires a StatefulSet with PVC persistent storage for PBF graph files, JVM memory heap tuning, and startup probe initial delays (300s+) to accommodate Contraction Hierarchies (CH) pre-computation without crash loops. PVC provisioning configurations for OSM PBF files in multi-region clusters. Tuning health probe timeouts to accommodate long graph pre-computation periods. GraphHopper is arguably the most capable open-source routing engine available — it supports Contraction Hierarchies (CH) for sub-millisecond route queries, custom vehicle profiles, turn restrictions, and the full OpenStreetMap road network. The problem most teams encounter is not the algorithm; it is the operational challenge of running it in Kubernetes: loading a large OSM PBF file, sizing JVM memory correctly, handling the long CH pre-processing startup time, and updating map data without downtime. ...

June 1, 2026 · 13 min · Lê Tuấn Anh