Merge "Add SRIOV and QAT device plugin deploy components" into dev/icn-v0.1.0
[icn.git] / deploy / kud-plugin-addons / device-plugins / qat / yaml / qat_plugin_privileges.yaml
diff --git a/deploy/kud-plugin-addons/device-plugins/qat/yaml/qat_plugin_privileges.yaml b/deploy/kud-plugin-addons/device-plugins/qat/yaml/qat_plugin_privileges.yaml
new file mode 100644 (file)
index 0000000..d0032d8
--- /dev/null
@@ -0,0 +1,55 @@
+apiVersion: apps/v1
+kind: DaemonSet
+metadata:
+  name: intel-qat-plugin
+  labels:
+    app: intel-qat-plugin
+spec:
+  selector:
+    matchLabels:
+      app: intel-qat-plugin
+  template:
+    metadata:
+      labels:
+        app: intel-qat-plugin
+    spec:
+      containers:
+      - name: intel-qat-plugin
+        image: intel-qat-plugin:devel
+        env:
+        - name: DPDK_DRIVER
+          valueFrom:
+            configMapKeyRef:
+              name: intel-qat-plugin-config
+              key: DPDK_DRIVER
+        - name: KERNEL_VF_DRIVERS
+          valueFrom:
+            configMapKeyRef:
+              name: intel-qat-plugin-config
+              key: KERNEL_VF_DRIVERS
+        - name: MAX_NUM_DEVICES
+          valueFrom:
+            configMapKeyRef:
+              name: intel-qat-plugin-config
+              key: MAX_NUM_DEVICES
+        - name: DEBUG
+          valueFrom:
+            configMapKeyRef:
+              name: intel-qat-plugin-config
+              key: DEBUG
+        imagePullPolicy: IfNotPresent
+        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)"]
+        volumeMounts:
+        - name: pcidir
+          mountPath: /sys/bus/pci
+        - name: kubeletsockets
+          mountPath: /var/lib/kubelet/device-plugins
+        securityContext:
+          privileged: true
+      volumes:
+      - name: pcidir
+        hostPath:
+          path: /sys/bus/pci
+      - name: kubeletsockets
+        hostPath:
+          path: /var/lib/kubelet/device-plugins