-
Notifications
You must be signed in to change notification settings - Fork 0
/
deploy.yaml
47 lines (47 loc) · 1.17 KB
/
deploy.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: DaemonSet
metadata:
labels:
k8s-app: gpu-memory-monitor
name: gpu-memory-monitor
namespace: kube-system
spec:
selector:
matchLabels:
k8s-app: gpu-memory-monitor
template:
metadata:
labels:
k8s-app: gpu-memory-monitor
spec:
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: gpushare
operator: In
values:
- "true"
containers:
- env:
- name: NVIDIA_VISIBLE_DEVICES
value: all
- name: NVIDIA_DRIVER_CAPABILITIES
value: utility
image: gpu-memory-monitor:v1
imagePullPolicy: IfNotPresent
name: gpu-memory-monitor
resources:
requests:
cpu: 500m
volumeMounts:
- mountPath: /var/run
name: docker-sock
readOnly: false
hostNetwork: true
restartPolicy: Always
volumes:
- hostPath:
path: /var/run
name: docker-sock