From 8a8805699c7322bf5f795dc7626beba096efc296 Mon Sep 17 00:00:00 2001 From: "Jingzhao.Ni" Date: Wed, 22 May 2019 10:09:31 +0800 Subject: [PATCH] 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 --- jjb/iec/iec-compass-deploy.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) 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 -- 2.16.6