summaryrefslogtreecommitdiffstats
path: root/src/cni/multus/install_cni.sh
blob: 0d1ee6b06ca4cf93cffd5f9bbf73775a30356470 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/bash

set -ex

export PATH=/usr/local/go/bin:$PATH
apt-get update && apt-get install -y wget
rm -rf multus-cni
wget -qO- https://storage.googleapis.com/golang/go1.8.3.linux-amd64.tar.gz | tar -C /usr/local/ -xz
git clone https://github.com/Intel-Corp/multus-cni
cd multus-cni; bash ./build
cp bin/multus /opt/cni/bin
cp /etc/kube-cnimultus/cni-conf.json /etc/cni/net.d/05-multus.conf