-
Notifications
You must be signed in to change notification settings - Fork 0
/
cxr-deployment.yml
59 lines (54 loc) · 1.15 KB
/
cxr-deployment.yml
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
apiVersion: apps/v1
kind: Deployment
metadata:
name: cxr-deployment
namespace: deepmd-pc
spec:
selector:
matchLabels:
app: cxr
replicas: 1
template:
metadata:
labels:
app: cxr
spec:
volumes:
- name: deepmd-storage-input
hostPath:
path: /tmp/deepmd/cxr/input
type: DirectoryOrCreate
- name: deepmd-storage-output
hostPath:
path: /tmp/deepmd/cxr/output
type: DirectoryOrCreate
containers:
- name: cxr
image: anilyerramasu/cxr-detectron2
ports:
- containerPort: 5000
imagePullPolicy: Always
volumeMounts:
- name: deepmd-storage-input
mountPath: /home/input
- name: deepmd-storage-output
mountPath: /home/output
readinessProbe:
httpGet:
path: /cxr
port: 5000
initialDelaySeconds: 30
periodSeconds: 3
---
apiVersion: v1
kind: Service
metadata:
name: cxr-service
namespace: deepmd-pc
spec:
ports:
- port: 5000
targetPort: 5000
name: http
selector:
app: cxr