X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=blobdiff_plain;f=src%2Ffoundation%2Fscripts%2Fcni%2Fmultus%2Flatest%2Fsriovdp-daemonset.yaml;fp=src%2Ffoundation%2Fscripts%2Fcni%2Fmultus%2Flatest%2Fsriovdp-daemonset.yaml;h=2ccbff7f066790137ce0e6d361f8dd4a8480d07f;hb=0a098643ff6187702bb9c971c7d3baabcb08bf42;hp=0000000000000000000000000000000000000000;hpb=5e8e332ce38f771991f443fd9114f6f997ad1f89;p=iec.git diff --git a/src/foundation/scripts/cni/multus/latest/sriovdp-daemonset.yaml b/src/foundation/scripts/cni/multus/latest/sriovdp-daemonset.yaml new file mode 100644 index 0000000..2ccbff7 --- /dev/null +++ b/src/foundation/scripts/cni/multus/latest/sriovdp-daemonset.yaml @@ -0,0 +1,81 @@ +--- +apiVersion: v1 +kind: ServiceAccount +metadata: + name: sriov-device-plugin + namespace: kube-system + +--- +apiVersion: apps/v1 +kind: DaemonSet +metadata: + name: kube-sriov-device-plugin + namespace: kube-system + labels: + tier: node + app: sriovdp +spec: + selector: + matchLabels: + name: sriov-device-plugin + template: + metadata: + labels: + name: sriov-device-plugin + tier: node + app: sriovdp + spec: + hostNetwork: true + #nodeSelector: + #beta.kubernetes.io/arch: amd64 + tolerations: + - key: node-role.kubernetes.io/master + operator: Exists + effect: NoSchedule + serviceAccountName: sriov-device-plugin + containers: + - name: kube-sriovdp + #image: ghcr.io/k8snetworkplumbingwg/sriov-network-device-plugin:v3.4.0 + image: iecedge/sriov-network-device-plugin:6fff085aed911388f6cd5d9576901e073681d62e + imagePullPolicy: IfNotPresent + args: + - --log-dir=sriovdp + - --log-level=10 + - --resource-prefix=arm.com + securityContext: + privileged: true + resources: + requests: + cpu: "250m" + memory: "40Mi" + limits: + cpu: 1 + memory: "200Mi" + volumeMounts: + - name: devicesock + mountPath: /var/lib/kubelet/ + readOnly: false + - name: log + mountPath: /var/log + - name: config-volume + mountPath: /etc/pcidp + - name: device-info + mountPath: /var/run/k8s.cni.cncf.io/devinfo/dp + volumes: + - name: devicesock + hostPath: + path: /var/lib/kubelet/ + - name: log + hostPath: + path: /var/log + - name: device-info + hostPath: + path: /var/run/k8s.cni.cncf.io/devinfo/dp + type: DirectoryOrCreate + - name: config-volume + configMap: + name: sriovdp-config + items: + - key: config.json + path: config.json +