Add Kubernetes manifests for routing engines
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.
This commit is contained in:
parent
8509a0326f
commit
7084c46f89
5 changed files with 244 additions and 0 deletions
53
k8s/osrm-bicycle.yaml
Normal file
53
k8s/osrm-bicycle.yaml
Normal file
|
|
@ -0,0 +1,53 @@
|
|||
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
|
||||
Loading…
Add table
Add a link
Reference in a new issue