...
1apiVersion: apps/v1
2kind: DaemonSet
3metadata:
4 name: kube-sriov-device-plugin-amd64
5 namespace: kube-system
6 labels:
7 tier: node
8 app: sriovdp
9spec:
10 selector:
11 matchLabels:
12 name: sriov-device-plugin
13 template:
14 metadata:
15 labels:
16 name: sriov-device-plugin
17 tier: node
18 app: sriovdp
19 spec:
20 hostNetwork: true
21 hostPID: true
22 nodeSelector:
23 kubernetes.io/arch: amd64
24 tolerations:
25 - key: node-role.kubernetes.io/master
26 operator: Exists
27 effect: NoSchedule
28 - key: node-role.kubernetes.io/control-plane
29 operator: Exists
30 effect: NoSchedule
31 serviceAccountName: sriov-device-plugin
32 containers:
33 - name: kube-sriovdp
34 image: docker.io/nfvpe/sriov-device-plugin:v3.1
35 imagePullPolicy: Never
36 args:
37 - --log-dir=sriovdp
38 - --log-level=10
39 securityContext:
40 privileged: true
41 volumeMounts:
42 - name: devicesock
43 mountPath: /var/lib/kubelet/
44 readOnly: false
45 - name: log
46 mountPath: /var/log
47 - name: config-volume
48 mountPath: /etc/pcidp
49 volumes:
50 - name: devicesock
51 hostPath:
52 path: /var/lib/kubelet/
53 - name: log
54 hostPath:
55 path: /var/log
56 - name: config-volume
57 configMap:
58 name: sriovdp-config
59 items:
60 - key: config.json
61 path: config.json
View as plain text