-
Notifications
You must be signed in to change notification settings - Fork 3
/
edgetpu-daemonset.yaml
56 lines (56 loc) · 1.71 KB
/
edgetpu-daemonset.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
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: edgetpu-exporter
spec:
selector:
matchLabels:
name: edgetpu-exporter
template:
metadata:
labels:
name: edgetpu-exporter
annotations:
prometheus.io/scrape: "true"
spec:
containers:
- name: edgetpu-exporter
image: adaptant/edgetpu-exporter:latest
args:
- "-sysfs=/host-sys"
ports:
- containerPort: 8080
volumeMounts:
- mountPath: /host-sys
name: sysfs
readOnly: true
volumes:
- name: sysfs
hostPath:
path: /sys
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
# EdgeTPU Device Plugin
- key: kkohtaka.org/edgetpu
operator: Exists
- matchExpressions:
# USB-attached Coral AI Accelerator (using NFD discovery)
- key: feature.node.kubernetes.io/usb-fe_1a6e_089a.present
operator: In
values:
- "true"
- matchExpressions:
# PCIe-attached Coral AI Accelerator (using NFD discovery)
- key: feature.node.kubernetes.io/pci-0880_1ac1.present
operator: In
values:
- "true"
- matchExpressions:
# Coral Dev Board (using DT labelling)
- key: beta.devicetree.org/fsl-imx8mq-phanbell
operator: In
values:
- "1"