summaryrefslogtreecommitdiffstats
path: root/src/cni/ovsdpdk/kube_cniovsdpdk.yml
diff options
context:
space:
mode:
authorXuan Jia <jason.jiaxuan@gmail.com>2017-11-25 02:37:49 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-11-25 02:37:49 +0000
commite5d17cb963fdbfaeff7d7274d5b9bc6c86ced23f (patch)
tree6a05a09cc2f6f40481538fa9be8b91db46eb6e34 /src/cni/ovsdpdk/kube_cniovsdpdk.yml
parentb80a6c9558a472fad77ef0aadca201f38cfcc841 (diff)
parenta8388222d5d1f11be506e9e79f5e2476c447177e (diff)
Merge "build ovsdpdk cni during deployment"
Diffstat (limited to 'src/cni/ovsdpdk/kube_cniovsdpdk.yml')
-rw-r--r--src/cni/ovsdpdk/kube_cniovsdpdk.yml14
1 files changed, 11 insertions, 3 deletions
diff --git a/src/cni/ovsdpdk/kube_cniovsdpdk.yml b/src/cni/ovsdpdk/kube_cniovsdpdk.yml
index 3684719..89491da 100644
--- a/src/cni/ovsdpdk/kube_cniovsdpdk.yml
+++ b/src/cni/ovsdpdk/kube_cniovsdpdk.yml
@@ -51,13 +51,21 @@ spec:
operator: Exists
effect: NoSchedule
serviceAccountName: cniovsdpdk
- containers:
+ initContainers:
- name: install-cni
- image: openretriever/cni-ovsdpdk
- command: [ "/bin/bash", "/cni/install_cni.sh" ]
+ image: ubuntu:16.04
+ command:
+ - bash
+ - "-c"
+ - "apt-get update && apt-get install -y git && git clone http://github.com/opnfv/container4nfv && cd container4nfv && git fetch https://gerrit.opnfv.org/gerrit/container4nfv refs/changes/43/47743/5 && git checkout FETCH_HEAD && bash ./src/cni/ovsdpdk/install_cni.sh"
volumeMounts:
- name: cni-bin
mountPath: /opt/cni/bin
+ containers:
+ - name: run-cni
+ image: busybox:1.27.2
+ command: [ 'sh', '-c', 'cp /etc/kube-cniovsdpdk/cni-conf.json /etc/cni/net.d/10-ovsdpdk.conf; while true; do sleep 10000; done' ]
+ volumeMounts:
- name: cni-cfg
mountPath: /etc/cni/net.d
- name: cniovsdpdk-cfg