-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprometheus-ncs2-exporter.yaml
More file actions
35 lines (35 loc) · 987 Bytes
/
prometheus-ncs2-exporter.yaml
File metadata and controls
35 lines (35 loc) · 987 Bytes
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
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: ncs2-exporter
namespace: kube-system
spec:
selector:
matchLabels:
name: ncs2-exporter
template:
metadata:
labels:
name: ncs2-exporter
annotations:
prometheus.io/scrape: "true"
spec:
containers:
- name: ncs2-exporter
image: adaptant/prometheus-ncs2-exporter:latest
ports:
- containerPort: 8084
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
# k8s-auto-labeller
- key: accelerators/ncs2
operator: Exists
- matchExpressions:
# USB-attached NCS2 (using NFD discovery)
- key: feature.node.kubernetes.io/usb-ff_03e7_2485.present
operator: In
values:
- "true"