Upgrade Multus/SRIOV/SRIOV DP to Latest Revision
[iec.git] / src / foundation / scripts / cni / multus / latest / sriovdp-daemonset.yaml
1 ---
2 apiVersion: v1
3 kind: ServiceAccount
4 metadata:
5   name: sriov-device-plugin
6   namespace: kube-system
7
8 ---
9 apiVersion: apps/v1
10 kind: DaemonSet
11 metadata:
12   name: kube-sriov-device-plugin
13   namespace: kube-system
14   labels:
15     tier: node
16     app: sriovdp
17 spec:
18   selector:
19     matchLabels:
20       name: sriov-device-plugin
21   template:
22     metadata:
23       labels:
24         name: sriov-device-plugin
25         tier: node
26         app: sriovdp
27     spec:
28       hostNetwork: true
29       #nodeSelector:
30       #beta.kubernetes.io/arch: amd64
31       tolerations:
32       - key: node-role.kubernetes.io/master
33         operator: Exists
34         effect: NoSchedule
35       serviceAccountName: sriov-device-plugin
36       containers:
37       - name: kube-sriovdp
38         #image: ghcr.io/k8snetworkplumbingwg/sriov-network-device-plugin:v3.4.0
39         image: iecedge/sriov-network-device-plugin:6fff085aed911388f6cd5d9576901e073681d62e
40         imagePullPolicy: IfNotPresent
41         args:
42         - --log-dir=sriovdp
43         - --log-level=10
44         - --resource-prefix=arm.com
45         securityContext:
46           privileged: true
47         resources:
48           requests:
49             cpu: "250m"
50             memory: "40Mi"
51           limits:
52             cpu: 1
53             memory: "200Mi"
54         volumeMounts:
55         - name: devicesock
56           mountPath: /var/lib/kubelet/
57           readOnly: false
58         - name: log
59           mountPath: /var/log
60         - name: config-volume
61           mountPath: /etc/pcidp
62         - name: device-info
63           mountPath: /var/run/k8s.cni.cncf.io/devinfo/dp
64       volumes:
65         - name: devicesock
66           hostPath:
67             path: /var/lib/kubelet/
68         - name: log
69           hostPath:
70             path: /var/log
71         - name: device-info
72           hostPath:
73             path: /var/run/k8s.cni.cncf.io/devinfo/dp
74             type: DirectoryOrCreate
75         - name: config-volume
76           configMap:
77             name: sriovdp-config
78             items:
79             - key: config.json
80               path: config.json
81