Badhrinath Padmanabhan | 5c57998 | 2022-11-16 15:01:38 -0500 | [diff] [blame^] | 1 | {{/* |
| 2 | # Copyright 2022-present Open Networking Foundation |
| 3 | |
| 4 | # SPDX-License-Identifier: Apache-2.0 |
| 5 | */}} |
| 6 | |
| 7 | --- |
| 8 | apiVersion: apps/v1 |
| 9 | kind: DaemonSet |
| 10 | metadata: |
| 11 | name: init-net |
| 12 | spec: |
| 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 |