-
Notifications
You must be signed in to change notification settings - Fork 63
/
Copy pathopentripplanner-seattle-deployment.yaml
69 lines (69 loc) · 1.83 KB
/
opentripplanner-seattle-deployment.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
apiVersion: apps/v1
kind: Deployment
metadata:
name: opentripplanner-seattle
spec:
selector:
matchLabels:
app: opentripplanner-seattle
replicas: 1
template:
metadata:
labels:
app: opentripplanner-seattle
spec:
initContainers:
- name: init
image: ghcr.io/headwaymaps/opentripplanner-init:latest
imagePullPolicy: Always
volumeMounts:
- name: opentripplanner-volume
mountPath: /data
env:
- name: OTP_ARTIFACT_URL
valueFrom:
configMapKeyRef:
name: deployment-config
key: otp-graph-urls.seattle
resources:
limits:
memory: 128Mi
requests:
memory: 128Mi
containers:
- name: main
image: ghcr.io/headwaymaps/opentripplanner:latest
imagePullPolicy: Always
ports:
- containerPort: 8000
volumeMounts:
- name: opentripplanner-volume
mountPath: /var/opentripplanner
resources:
limits:
memory: 4.5Gi
requests:
memory: 500Mi
livenessProbe:
httpGet:
path: /
port: 8000
initialDelaySeconds: 15
periodSeconds: 15
failureThreshold: 20
readinessProbe:
httpGet:
path: /
port: 8000
initialDelaySeconds: 15
periodSeconds: 15
failureThreshold: 20
volumes:
- name: opentripplanner-volume
ephemeral:
volumeClaimTemplate:
spec:
accessModes: [ "ReadWriteOnce" ]
resources:
requests:
storage: 1Gi