summaryrefslogtreecommitdiffstats
path: root/samples/scenarios/deploy.sh
diff options
context:
space:
mode:
authorStephen Wong <stephen.kf.wong@gmail.com>2018-04-15 06:58:59 +0000
committerGerrit Code Review <gerrit@opnfv.org>2018-04-15 06:58:59 +0000
commit2208c1dbef93cb46e862bb7ce6b6d8e0a7541304 (patch)
tree2b6075f8562af0d130a979436a19ebbc223bb1cd /samples/scenarios/deploy.sh
parent2047131b30c3725526254c5688aff7b781796daa (diff)
parent10c1a76a6359127e3fcd4999dfffce1bcabf6aec (diff)
Merge "Add SDC deploy/clean scripts"
Diffstat (limited to 'samples/scenarios/deploy.sh')
-rwxr-xr-xsamples/scenarios/deploy.sh22
1 files changed, 22 insertions, 0 deletions
diff --git a/samples/scenarios/deploy.sh b/samples/scenarios/deploy.sh
new file mode 100755
index 0000000..1ffea37
--- /dev/null
+++ b/samples/scenarios/deploy.sh
@@ -0,0 +1,22 @@
+#!/bin/bash
+#
+# Copyright (c) Authors of Clover
+#
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Apache License, Version 2.0
+# which accompanies this distribution, and is available at
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+
+CLOVER_BASE_DIR=${CLOVER_BASE_DIR:-"/home/opnfv/repos/clover"}
+ISTIO_BASE_DIR=${ISTIO_BASE_DIR:-"/istio-source"}
+
+cd $CLOVER_BASE_DIR
+
+echo "Deploying Istio manual sidecar injection without TLS authentication"
+
+kubectl apply -f $ISTIO_BASE_DIR/install/kubernetes/istio.yaml
+
+echo "Deploying Service Delivery Controller sample scenario"
+
+kubectl apply -f <(istioctl kube-inject --debug -f ./samples/scenarios/service_delivery_controller_opnfv.yaml)