Update documentation for Cluster-API and Flux
[icn.git] / deploy / kud-plugin-addons / device-plugins / qat / yaml / qat_plugin_privileges.yaml
1 apiVersion: apps/v1
2 kind: DaemonSet
3 metadata:
4   name: intel-qat-plugin
5   labels:
6     app: intel-qat-plugin
7 spec:
8   selector:
9     matchLabels:
10       app: intel-qat-plugin
11   template:
12     metadata:
13       labels:
14         app: intel-qat-plugin
15     spec:
16       containers:
17       - name: intel-qat-plugin
18         image: intel-qat-plugin:devel
19         env:
20         - name: DPDK_DRIVER
21           valueFrom:
22             configMapKeyRef:
23               name: intel-qat-plugin-config
24               key: DPDK_DRIVER
25         - name: KERNEL_VF_DRIVERS
26           valueFrom:
27             configMapKeyRef:
28               name: intel-qat-plugin-config
29               key: KERNEL_VF_DRIVERS
30         - name: MAX_NUM_DEVICES
31           valueFrom:
32             configMapKeyRef:
33               name: intel-qat-plugin-config
34               key: MAX_NUM_DEVICES
35         - name: DEBUG
36           valueFrom:
37             configMapKeyRef:
38               name: intel-qat-plugin-config
39               key: DEBUG
40         imagePullPolicy: IfNotPresent
41         command: ["/usr/bin/intel_qat_device_plugin", "-dpdk-driver", "$(DPDK_DRIVER)", "-kernel-vf-drivers", "$(KERNEL_VF_DRIVERS)", "-max-num-devices", "$(MAX_NUM_DEVICES)", "-debug", "$(DEBUG)"]
42         volumeMounts:
43         - name: pcidir
44           mountPath: /sys/bus/pci
45         - name: kubeletsockets
46           mountPath: /var/lib/kubelet/device-plugins
47         securityContext:
48           privileged: true
49       volumes:
50       - name: pcidir
51         hostPath:
52           path: /sys/bus/pci
53       - name: kubeletsockets
54         hostPath:
55           path: /var/lib/kubelet/device-plugins