From 0d057d8e10fd5e29156516196ffec60ecb115087 Mon Sep 17 00:00:00 2001 From: hu xinhui Date: Wed, 30 Aug 2017 15:36:13 +0800 Subject: Add k8s support JIRA: - Add a new k8s scenario for compass Change-Id: Ic5f58a6152315333684e4f2752aaa0d5d870d9ee Signed-off-by: hu xinhui --- deploy/conf/cluster.conf | 6 ++++++ deploy/conf/compass.conf | 5 +++++ 2 files changed, 11 insertions(+) (limited to 'deploy/conf') diff --git a/deploy/conf/cluster.conf b/deploy/conf/cluster.conf index e0c5655b..ddcbb6c3 100644 --- a/deploy/conf/cluster.conf +++ b/deploy/conf/cluster.conf @@ -23,5 +23,11 @@ fi export ADAPTER_NAME="openstack_$OPENSTACK_VERSION" export ADAPTER_FLAVOR_PATTERN="HA-ansible-multinodes-$OPENSTACK_VERSION" +if [[ "x"$KUBERNETES_VERSION != "x" ]]; then + export ADAPTER_NAME=kubernetes + export ADAPTER_FLAVOR_PATTERN=ansible-kubernetes + export ADAPTER_TARGET_SYSTEM_PATTERN='^kubernetes$' +fi + export DEFAULT_ROLES="" export VIP="10.1.0.222" diff --git a/deploy/conf/compass.conf b/deploy/conf/compass.conf index c3ea85c0..ba9d8a7d 100644 --- a/deploy/conf/compass.conf +++ b/deploy/conf/compass.conf @@ -19,6 +19,11 @@ export COMPASS_REPO_PORT="5151" export COMPASS_DECK="compass4nfv/compass-deck" export COMPASS_TASKS="compass4nfv/compass-tasks-osa" + +if [[ "x"$KUBERNETES_VERSION != "x" ]]; then + export COMPASS_TASKS="compass4nfv/compass-tasks-k8s" +fi + export COMPASS_COBBLER="compass4nfv/compass-cobbler" export COMPASS_DB="compass4nfv/compass-db" export COMPASS_MQ="compass4nfv/compass-mq" -- cgit 1.2.3-korg