forked from KAIST-NCL/Accelerator-K8S
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathacc-k8s.yml
31 lines (31 loc) · 850 Bytes
/
acc-k8s.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
apiVersion: extensions/v1beta1
kind: DaemonSet
metadata:
name: acc-k8s
namespace: kube-system
spec:
template:
metadata:
labels:
name: acc-k8s-ds
spec:
priorityClassName: "system-node-critical"
containers:
- image: kaistncl/accelerator-k8s:latest
name: acc-k8s-ctr
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop: ["ALL"]
volumeMounts:
- name: device-plugin
mountPath: /var/lib/kubelet/device-plugins
- name: acc-k8s
mountPath: /etc/accelerator-docker/
volumes:
- name: device-plugin
hostPath:
path: /var/lib/kubelet/device-plugins
- name: acc-k8s
hostPath:
path: /etc/accelerator-docker