From b1b71ac7132ff5ccebcfac8ca2bb2f7540025b13 Mon Sep 17 00:00:00 2001 From: wutianwei Date: Mon, 8 Jan 2018 17:17:17 +0800 Subject: 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 --- xci/var/opnfv.yml | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'xci/var/opnfv.yml') diff --git a/xci/var/opnfv.yml b/xci/var/opnfv.yml index 5638eba4..158b1dfe 100644 --- a/xci/var/opnfv.yml +++ b/xci/var/opnfv.yml @@ -35,6 +35,13 @@ XCI_CEPH_ENABLED: "{{ lookup('env', 'XCI_CEPH_ENABLED') }}" RUN_TEMPEST: "{{ lookup('env', 'RUN_TEMPEST') }}" DEPLOY_SCENARIO: "{{ lookup('env','DEPLOY_SCENARIO') }}" XCI_INSTALLER: "{{ lookup('env','XCI_INSTALLER') }}" +KUBESPRAY_VERSION: "{{ lookup('env','KUBESPRAY_VERSION') }}" +XCI_KUBE_ANSIBLE_PIP_VERSION: "{{ lookup('env','XCI_KUBE_ANSIBLE_PIP_VERSION') }}" +KUBESPRAY_GIT_URL: "{{ lookup('env','KUBESPRAY_GIT_URL') }}" +OPENSTACK_OSA_HAPROXY_GIT_URL: "{{ lookup('env','OPENSTACK_OSA_HAPROXY_GIT_URL') }}" +HAPROXY_VERSION: "{{ lookup('env','HAPROXY_VERSION') }}" +KEEPALIVED_GIT_URL: "{{ lookup('env','KEEPALIVED_GIT_URL') }}" +KEEPALIVED_VERSION: "{{ lookup('env','KEEPALIVED_VERSION') }}" # install docker on opnfv host only if we are running as part of CI opnfv_required_packages: -- cgit 1.2.3-korg