-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmathpix-deployment.yaml
47 lines (47 loc) · 1.13 KB
/
mathpix-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
apiVersion: apps/v1
kind: Deployment
metadata:
name: mathpix-api
labels:
app: mathpix-api
spec:
replicas: 1
selector:
matchLabels:
app: mathpix-api
template:
metadata:
labels:
app: mathpix-api
spec:
containers:
- name: mathpix-onprem
envFrom:
- configMapRef:
name: mathpix-env
resources:
requests:
cpu: "16"
memory: 64Gi
limits:
cpu: "16"
memory: 64Gi
nvidia.com/gpu: "1"
image: 426887012336.dkr.ecr.us-east-1.amazonaws.com/mathpix/on-prem-ocr-api:1.0.0
imagePullPolicy: Always
livenessProbe:
httpGet:
path: /region-health
port: 8070
initialDelaySeconds: 30
timeoutSeconds: 5
periodSeconds: 10
readinessProbe:
httpGet:
path: /region-health
port: 8070
initialDelaySeconds: 5
timeoutSeconds: 5
periodSeconds: 10
ports:
- containerPort: 8070