Add DBaaS HA related deployment 60/2360/3
authorwrider <lji@research.att.com>
Tue, 28 Jan 2020 18:08:47 +0000 (13:08 -0500)
committerLusheng Ji <lji@research.att.com>
Thu, 20 Feb 2020 14:55:25 +0000 (14:55 +0000)
Change-Id: Iae2bac6cbfae50b3253285ad7121460af9d42027
Signed-off-by: wrider <lji@research.att.com>
Issue-ID: RIC-185

RECIPE_EXAMPLE/example_recipe.yaml
bin/install
bin/uninstall

index e181e00..4cdd4f3 100644 (file)
@@ -84,7 +84,16 @@ dbaas:
     image:
       registry: "nexus3.o-ran-sc.org:10002/o-ran-sc"
       name: ric-plt-dbaas
-      tag: 0.2.2
+      tag: 0.1.0
+
+dbaasha:
+  image:
+    registry: "nexus3.o-ran-sc.org:10002/o-ran-sc"
+    name: ric-plt-dbaas
+    tag: 0.2.2
+  # Remove the affinity line below when deploying in a k8s
+  # cluster of more than 3 nodes.
+  affinity: ""
 
 e2mgr:
   image:
index 5c7837d..e4e526b 100755 (executable)
@@ -70,7 +70,8 @@ PLTNAMESPACE=$(echo "$NAMESPACE_BLOCK" | awk '/^ *platform:/{print $2}')
 INFRANAMESPACE=$(echo "$NAMESPACE_BLOCK" | awk '/^ *infra:/{print $2}')
 XAPPNAMESPACE=$(echo "$NAMESPACE_BLOCK" | awk '/^ *xapp:/{print $2}')
 RELEASE_PREFIX=$(echo "$COMMON_BLOCK" | awk '/^ *releasePrefix:/{print $2}')
-COMPONENTS=${LIST_OF_COMPONENTS:-"infrastructure appmgr rtmgr dbaas1 e2mgr e2term a1mediator submgr vespamgr rsm jaegeradapter"}
+# replace the dbaasha with dbaas1 if deploying non HA DBaaS
+COMPONENTS=${LIST_OF_COMPONENTS:-"infrastructure appmgr rtmgr dbaasha e2mgr e2term a1mediator submgr vespamgr rsm jaegeradapter"}
 echo "Deploying RIC infra components [$COMPONENTS]"
 
 
@@ -91,4 +92,4 @@ for component in $COMPONENTS; do
     helm dep up $DIR/../helm/$component
     helm install -f $OVERRIDEYAML --namespace "${PLTNAMESPACE:-ricplt}" --name "${RELEASE_PREFIX}-$component" $DIR/../helm/$component
     sleep 3
-done
+done
\ No newline at end of file
index dd7e869..0d304f1 100755 (executable)
@@ -16,7 +16,7 @@
 #   limitations under the License.                                             #
 ################################################################################
 
-COMPONENTS="appmgr rtmgr dbaas1 e2mgr e2term a1mediator submgr vespamgr rsm jaegeradapter infrastructure"
+COMPONENTS="appmgr rtmgr dbaas1 dbaasha e2mgr e2term a1mediator submgr vespamgr rsm jaegeradapter infrastructure"
 RECIPE_NAMESPACE=$(kubectl get cm --all-namespaces | grep ricplt-recipe | awk '{print $1}')
 kubectl get configmap  -n $RECIPE_NAMESPACE ricplt-recipe  -o jsonpath='{.data.recipe}' > /tmp/recipe.yaml