blob: 4d69a28b960556c7e405be489f34777d8662dc5b [file] [log] [blame]
Badhrinath Padmanabhan5c579982022-11-16 15:01:38 -05001{{/*
2# Copyright 2022-present Open Networking Foundation
3
4# SPDX-License-Identifier: Apache-2.0
5*/}}
6
7---
8apiVersion: apps/v1
9kind: DaemonSet
10metadata:
11 name: init-net
12spec:
13 selector:
14 matchLabels:
15 name: init-net
16 template:
17 metadata:
18 labels:
19 name: init-net
20 spec:
21 containers:
22 - name: init-sriov-plugin
23 image: docker.io/omecproject/omec-cni:1.1.4
24 imagePullPolicy: IfNotPresent
25 command: ["/bin/bash", "-c"]
26 args:
27 - >
28 yes | cp /tmp/cni/bin/{vfioveth,static} /host/opt/cni/bin/;
29 chmod +x /host/opt/cni/bin/vfioveth;
30 chmod +x /host/opt/cni/bin/static;
31 trap : TERM INT; sleep infinity & wait;
32 volumeMounts:
33 - name: cni-bin
34 mountPath: /host/opt/cni/bin
35 volumes:
36 - name: cni-bin
37 hostPath:
38 path: /opt/cni/bin