Add SRIOV and QAT device plugin deploy components
[icn.git] / deploy / kud-plugin-addons / device-plugins / sriov / yaml / sriovdp-daemonset.yaml
1 # SRIOV device CNI plugin
2 # Based on:
3 # https://github.com/intel/sriov-network-device-plugin/blob/master/images/sriovdp-daemonset.yaml
4 ---
5 apiVersion: v1
6 kind: ConfigMap
7 metadata:
8   name: sriovdp-config
9   namespace: kube-system
10 data:
11   config.json: |
12     {
13       "resourceList": [{
14          "resourceName": "intel_sriov_700",
15          "selectors": {
16             "vendors": ["8086"]
17          }
18        }]
19     }
20
21 ---
22 apiVersion: v1
23 kind: ServiceAccount
24 metadata:
25   name: sriov-device-plugin
26   namespace: kube-system
27
28 ---
29 apiVersion: extensions/v1beta1
30 kind: DaemonSet
31 metadata:
32   name: kube-sriov-device-plugin-amd64
33   namespace: kube-system
34   labels:
35     tier: node
36     app: sriovdp
37 spec:
38   template:
39     metadata:
40       labels:
41         tier: node
42         app: sriovdp
43     spec:
44       hostNetwork: true
45       hostPID: true
46       nodeSelector:
47         beta.kubernetes.io/arch: amd64
48       tolerations:
49       - key: node-role.kubernetes.io/master
50         operator: Exists
51         effect: NoSchedule
52       serviceAccountName: sriov-device-plugin
53       containers:
54       - name: kube-sriovdp
55         image: nfvpe/sriov-device-plugin
56         args:
57         - --log-dir=sriovdp
58         - --log-level=10
59         securityContext:
60           privileged: true
61         volumeMounts:
62         - name: devicesock
63           mountPath: /var/lib/kubelet/
64           readOnly: false
65         - name: log
66           mountPath: /var/log
67         - name: config-volume
68           mountPath: /etc/pcidp
69       volumes:
70         - name: devicesock
71           hostPath:
72             path: /var/lib/kubelet/
73         - name: log
74           hostPath:
75             path: /var/log
76         - name: config-volume
77           configMap:
78             name: sriovdp-config
79             items:
80             - key: config.json
81               path: config.json