From: Jingzhao.Ni Date: Wed, 22 May 2019 02:09:31 +0000 (+0800) Subject: Add 3 virtual hosts into IEC CI/CD platform X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=commitdiff_plain;ds=sidebyside;h=refs%2Fchanges%2F74%2F774%2F4;p=ci-management.git Add 3 virtual hosts into IEC CI/CD platform In this patch, the 3 virtual host was deployed on CI platform. Firstly, it add the 3rd host into k8-nosdn-nofeature-noha.yml confiugration file. Secondly, it modifies the confiugration file for avoiding install K8s by compass. Signed-off-by: Jingzhao.Ni Change-Id: I5b1b6d4140a37182137325668b4bc7076c8b4f1d --- diff --git a/jjb/iec/iec-compass-deploy.sh b/jjb/iec/iec-compass-deploy.sh index e3dd4e8..e77810b 100755 --- a/jjb/iec/iec-compass-deploy.sh +++ b/jjb/iec/iec-compass-deploy.sh @@ -3,5 +3,21 @@ set -e cd compass4nfv +# Create 3 virtual machine +echo -e " - name: host3\n roles:\n - kube_node" >> deploy/conf/vm_environment/k8-nosdn-nofeature-noha.yml +# Remove useless code +sed -i "33,90d" deploy/adapters/ansible/kubernetes/ansible-kubernetes.yml + +export ADAPTER_OS_PATTERN='(?i)ubuntu-16.04.*arm.*' +export OS_VERSION="xenial" +export KUBERNETES_VERSION="v1.13.0" +if [[ "$NODE_NAME" =~ "-virtual" ]]; then + export DHA="deploy/conf/vm_environment/k8-nosdn-nofeature-noha.yml" + export NETWORK="deploy/conf/vm_environment/network.yml" + export VIRT_NUMBER=3 VIRT_CPUS=2 VIRT_MEM=4096 VIRT_DISK=50G +fi + +./deploy.sh + echo "Compass Deploy successful" exit 0