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/otp.yaml
Normal file
53
k8s/otp.yaml
Normal file
|
|
@ -0,0 +1,53 @@
|
|||
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
|
||||
Loading…
Add table
Add a link
Reference in a new issue