From 10c4d35315d7ffd909520a1c7bc6a3b5b9b871ab Mon Sep 17 00:00:00 2001 From: Zenghui Shi Date: Wed, 4 Apr 2018 11:24:40 +0800 Subject: Add support for kubernetes deployment This patch adds capability to deploy kubernetes cluster instead of openstack. Kubernetes will be deployed using kubespray and is run after TripleO bookstraps overcloud nodes. JIRA: APEX-574 Change-Id: If9c171620c933a052b719e7112a50e22bbab667f Signed-off-by: Feng Pan Signed-off-by: Zenghui Shi --- apex/overcloud/deploy.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'apex/overcloud') diff --git a/apex/overcloud/deploy.py b/apex/overcloud/deploy.py index 2f33183c..92b42fff 100644 --- a/apex/overcloud/deploy.py +++ b/apex/overcloud/deploy.py @@ -204,6 +204,11 @@ def create_deploy_cmd(ds, ns, inv, tmp_dir, if ds_opts['sriov']: prep_sriov_env(ds, tmp_dir) + # Check for 'k8s' here intentionally, as we may support other values + # such as openstack/openshift for 'vim' option. + if ds_opts['vim'] == 'k8s': + deploy_options.append('kubernetes-environment.yaml') + if virtual: deploy_options.append('virtual-environment.yaml') else: -- cgit 1.2.3-korg