e3b43cfefc7ec53bd8c72290d89711e77076bddd
[iec.git] / src / foundation / scripts / cni / multus / latest / sriov-cni-daemonset.yaml
1 ---
2 apiVersion: apps/v1
3 kind: DaemonSet
4 metadata:
5   name: kube-sriov-cni-ds
6   namespace: kube-system
7   labels:
8     tier: node
9     app: sriov-cni
10 spec:
11   selector:
12     matchLabels:
13       name: sriov-cni
14   template:
15     metadata:
16       labels:
17         name: sriov-cni
18         tier: node
19         app: sriov-cni
20     spec:
21       #nodeSelector:
22         #kubernetes.io/arch: amd64
23       tolerations:
24       - key: node-role.kubernetes.io/master
25         operator: Exists
26         effect: NoSchedule
27       containers:
28       - name: kube-sriov-cni
29         #image: ghcr.io/k8snetworkplumbingwg/sriov-cni
30         image: iecedge/sriov-cni:ba420ed48a87033a91c9f825d3581f60046a2ae8
31         imagePullPolicy: IfNotPresent
32         securityContext:
33           allowPrivilegeEscalation: false
34           privileged: false
35           readOnlyRootFilesystem: true
36           capabilities:
37             drop:
38               - ALL
39         resources:
40           requests:
41             cpu: "100m"
42             memory: "50Mi"
43           limits:
44             cpu: "100m"
45             memory: "50Mi"
46         volumeMounts:
47         - name: cnibin
48           mountPath: /host/opt/cni/bin
49       volumes:
50         - name: cnibin
51           hostPath:
52             path: /opt/cni/bin