wrongmove/k8s/otp.yaml
Viktor Barzin 7084c46f89
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.
2026-02-08 13:16:38 +00:00

53 lines
1.1 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: otp
labels:
app: otp
spec:
replicas: 1
selector:
matchLabels:
app: otp
template:
metadata:
labels:
app: otp
spec:
containers:
- name: otp
image: opentripplanner/opentripplanner:2.6.0
command: ["--load", "--serve"]
ports:
- containerPort: 8080
volumeMounts:
- name: otp-data
mountPath: /var/opentripplanner
resources:
requests:
memory: "1Gi"
cpu: "250m"
limits:
memory: "2Gi"
cpu: "1000m"
readinessProbe:
httpGet:
path: /otp/actuators/health
port: 8080
initialDelaySeconds: 120
periodSeconds: 30
volumes:
- name: otp-data
persistentVolumeClaim:
claimName: otp-data-pvc
---
apiVersion: v1
kind: Service
metadata:
name: otp
spec:
selector:
app: otp
ports:
- port: 8080
targetPort: 8080