Deployments and Services for osrm-foot (256-512MB), osrm-bicycle (256-512MB), and OTP (1-2GB). Includes PVCs for data storage and an init Job to download and pre-process Greater London OSM data.
53 lines
1.2 KiB
YAML
53 lines
1.2 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: osrm-bicycle
|
|
labels:
|
|
app: osrm-bicycle
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: osrm-bicycle
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: osrm-bicycle
|
|
spec:
|
|
containers:
|
|
- name: osrm-bicycle
|
|
image: ghcr.io/project-osrm/osrm-backend:latest
|
|
command: ["osrm-routed", "--algorithm", "MLD", "/data/bicycle/greater-london-latest.osrm"]
|
|
ports:
|
|
- containerPort: 5000
|
|
volumeMounts:
|
|
- name: osrm-data
|
|
mountPath: /data
|
|
resources:
|
|
requests:
|
|
memory: "256Mi"
|
|
cpu: "100m"
|
|
limits:
|
|
memory: "512Mi"
|
|
cpu: "500m"
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /health
|
|
port: 5000
|
|
initialDelaySeconds: 5
|
|
periodSeconds: 10
|
|
volumes:
|
|
- name: osrm-data
|
|
persistentVolumeClaim:
|
|
claimName: osrm-data-pvc
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: osrm-bicycle
|
|
spec:
|
|
selector:
|
|
app: osrm-bicycle
|
|
ports:
|
|
- port: 5000
|
|
targetPort: 5000
|