summaryrefslogtreecommitdiffstats
path: root/xci/config/env-vars
diff options
context:
space:
mode:
authorwutianwei <wutianwei1@huawei.com>2018-01-08 17:17:17 +0800
committerwutianwei <wutianwei1@huawei.com>2018-01-31 17:15:50 +0800
commitb1b71ac7132ff5ccebcfac8ca2bb2f7540025b13 (patch)
tree7306b59b309d9797849a515f754071a0bc526897 /xci/config/env-vars
parent862219cb61d57598029fc3dfe21923ccd00df257 (diff)
deploy kubernetes in XCI
This commit introduces kubespray into XCI. k8s install currently assumes k8s install and OpenStack install cannot coexist. If XCI_INSTALLER is set to "kubespray" and DEPLOY_SCENARIO is set to "k8-nosdn-nofeature" the xci-deploy.sh would install kubernetes instead of OpenStack. The version of kubernetes is beta release v1.9.0 currently according to the master of kubespray it only support the ubuntu now. Opensuse and centos still need to develop and test. This patch create the directory xci/installer/kubespray, the related files of kubespray would be placed to it. The xci/installer/$installer/playbooks/configure-localhost.yml was moved to xci/playbooks/configure-localhost.yml as a common yaml file. You can modify some parameters according your need in xci/installer/kubespray/files/k8s-cluster.yml to deploy cluster. When deploying kubernetes, it would download the kubespray to releng-xci/.cache/repos/kubespray. If your flavor is Ha, it will download haproxy_server and keepalived to xci/playbook/roles, which setup haproxy service for kubernetes. Change-Id: I24d521a735d7ee85fbe5af8c4def65f37586b843 Signed-off-by: wutianwei <wutianwei1@huawei.com>
Diffstat (limited to 'xci/config/env-vars')
-rwxr-xr-xxci/config/env-vars5
1 files changed, 5 insertions, 0 deletions
diff --git a/xci/config/env-vars b/xci/config/env-vars
index c7744ca1..f188149f 100755
--- a/xci/config/env-vars
+++ b/xci/config/env-vars
@@ -7,6 +7,9 @@ export OPENSTACK_BIFROST_GIT_URL=https://git.openstack.org/openstack/bifrost
export OPENSTACK_OSA_GIT_URL=https://git.openstack.org/openstack/openstack-ansible
export OPENSTACK_OSA_OPENRC_GIT_URL=https://git.openstack.org/openstack/openstack-ansible-openstack_openrc
export OPENSTACK_OSA_ETC_PATH=/etc/openstack_deploy
+export KUBESPRAY_GIT_URL=https://github.com/kubernetes-incubator/kubespray.git
+export OPENSTACK_OSA_HAPROXY_GIT_URL=https://git.openstack.org/openstack/openstack-ansible-haproxy_server
+export KEEPALIVED_GIT_URL=https://github.com/evrardjp/ansible-keepalived
export OPNFV_HOST_IP=192.168.122.2
export XCI_FLAVOR_ANSIBLE_FILE_PATH=$XCI_PATH/xci/installer/$XCI_INSTALLER/files/$XCI_FLAVOR
export CI_LOOP=${CI_LOOP:-daily}
@@ -34,3 +37,5 @@ export ANSIBLE_HOST_KEY_CHECKING=False
# subject of the certificate
export XCI_SSL_SUBJECT=${XCI_SSL_SUBJECT:-"/C=US/ST=California/L=San Francisco/O=IT/CN=xci.releng.opnfv.org"}
export DEPLOY_SCENARIO=${DEPLOY_SCENARIO:-"os-nosdn-nofeature"}
+# Kubespray requires that ansible version is 2.4.0.0
+export XCI_KUBE_ANSIBLE_PIP_VERSION=2.4.0.0