From 93de3c93a787408d2b2508ad22305d3d6e6c3d4a Mon Sep 17 00:00:00 2001 From: Anthony Lin Date: Thu, 21 Dec 2017 06:16:06 +0000 Subject: [PATCH] Update Replica for Shipyard/Airflow for UCP repo We will set the number of replica to 1 as this repo is meant to set up a dev environment (note that the default number of replicas is 2) Change-Id: I40bba79c550ed09ead0ba7b0b16a22fe20701e27 --- manifests/basic_ucp/armada.yaml.sub | 8 ++++++++ manifests/basic_ucp/deploy_ucp.sh | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/manifests/basic_ucp/armada.yaml.sub b/manifests/basic_ucp/armada.yaml.sub index 18d513d8..8db29315 100644 --- a/manifests/basic_ucp/armada.yaml.sub +++ b/manifests/basic_ucp/armada.yaml.sub @@ -528,6 +528,14 @@ data: dag_path: ${AIRFLOW_PATH_DAG} plugin_path: ${AIRFLOW_PATH_PLUGIN} log_path: ${AIRFLOW_PATH_LOG} + replicas: + shipyard: + api: 1 + airflow: + web: 1 + worker: 1 + flower: 1 + scheduler: 1 images: tags: airflow: ${AIRFLOW_IMAGE} diff --git a/manifests/basic_ucp/deploy_ucp.sh b/manifests/basic_ucp/deploy_ucp.sh index 0baa4a4e..bb7c19fc 100755 --- a/manifests/basic_ucp/deploy_ucp.sh +++ b/manifests/basic_ucp/deploy_ucp.sh @@ -140,7 +140,7 @@ function init_env { echo "Saving deployment environment to deploy-env.sh." env | xargs -n 1 -d '\n' echo "export" >> deploy-env.sh - } +} function genesis { rm -rf configs