diff options
author | trevortao <trevor.tao@arm.com> | 2018-01-25 14:31:50 +0800 |
---|---|---|
committer | trevortao <trevor.tao@arm.com> | 2018-01-25 14:31:50 +0800 |
commit | 432051cffd380d4d842223737e3949a3826683c8 (patch) | |
tree | d1c35779bb1406aba798161f8efad9d18235ee25 /src/arm/kubernetes_2flannel/k8s-build.sh | |
parent | 87e6c1419cab82ce5b0f828c360ac38120103993 (diff) |
Add Kubernetes deployment scenario with 2 Flannel interfaces
1. README file
2. Deployement scripts
Change-Id: I1f99ba77e803c8bbc5c40ae783b32ff0c7218375
Signed-off-by: trevortao <trevor.tao@arm.com>
Diffstat (limited to 'src/arm/kubernetes_2flannel/k8s-build.sh')
-rwxr-xr-x | src/arm/kubernetes_2flannel/k8s-build.sh | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/src/arm/kubernetes_2flannel/k8s-build.sh b/src/arm/kubernetes_2flannel/k8s-build.sh new file mode 100755 index 0000000..23d1d31 --- /dev/null +++ b/src/arm/kubernetes_2flannel/k8s-build.sh @@ -0,0 +1,32 @@ +#!/bin/bash +set -e + +sudo apt-get install -y docker.io libvirt-bin virt-manager qemu qemu-efi + +WORKSPACE=`pwd` +if [ ! -d "$WORKSPACE/compass4nfv" ]; then + git clone https://gerrit.opnfv.org/gerrit/compass4nfv +fi + +cd compass4nfv + +WORKSPACE=`pwd` + +COMPASS_WORK_DIR=$WORKSPACE/../compass-work +mkdir -p $COMPASS_WORK_DIR +if [ ! -d "$WORKSPACE/work" ]; then + ln -s $COMPASS_WORK_DIR work +fi + +#TODO: remove workaround after patches merged +if [ ! -f "$WORKSPACE/patched" ]; then + + git checkout a360411cb8c775dffa24a4157cec2b566cbde6f3 + curl http://people.linaro.org/~yibo.cai/compass/0001-deploy-cobbler-drop-tcp_tw_recycle-in-sysctl.conf.patch | git apply || true + curl http://people.linaro.org/~yibo.cai/compass/0002-docker-compose-support-aarch64.patch | git apply || true + curl http://people.linaro.org/~yibo.cai/compass/0003-add-a-multus-with-2-fannel-interfaces-installation.patch | git apply || true + touch "$WORKSPACE/patched" +fi + +# build tarball +COMPASS_ISO_REPO='http://people.linaro.org/~yibo.cai/compass' ./build.sh |