-
Notifications
You must be signed in to change notification settings - Fork 2
/
inference_service.yaml
61 lines (61 loc) · 1.43 KB
/
inference_service.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
apiVersion: apps/v1
kind: Deployment
metadata:
name: inferenceapp
spec:
replicas: 1
selector:
matchLabels:
app: inferenceapp
template:
metadata:
labels:
app: inferenceapp
annotations:
com.datadoghq.com.ad.logs: '[{"source": "python", "service": "inference-service"}]'
spec:
containers:
- name: inferenceapp
image: burningion/ffmpeg-pytorch-pygotham:latest
imagePullPolicy: Always
ports:
- containerPort: 5007
volumeMounts:
- name: videos
mountPath: /downloads
env:
- name: DATADOG_TRACE_AGENT_HOSTNAME
valueFrom:
fieldRef:
fieldPath: status.hostIP
- name: DD_TRACE_AGENT_PORT
value: '8126'
- name: DOGSTATSD_HOST_IP
valueFrom:
fieldRef:
fieldPath: status.hostIP
- name: DD_LOGS_INJECTION
value: 'true'
- name: NVIDIA_VISIBLE_DEVICES
value: 'all'
- name: DATADOG_SERVICE_NAME
value: 'inference-service'
- name: DD_TRACE_ANALYTICS_ENABLED
value: 'true'
volumes:
- hostPath:
path: /media/stankley/Samsung_T5/downloaded-videos
name: videos
---
apiVersion: v1
kind: Service
metadata:
name: inferenceapp
spec:
selector:
app: inferenceapp
ports:
- name: http
protocol: TCP
port: 5007
type: NodePort