summaryrefslogtreecommitdiffstats
path: root/samples/scenarios/view.sh
diff options
context:
space:
mode:
authorEddie Arrage <eddie.arrage@huawei.com>2018-04-13 19:15:29 +0000
committerEddie Arrage <eddie.arrage@huawei.com>2018-04-13 22:43:38 +0000
commit10c1a76a6359127e3fcd4999dfffce1bcabf6aec (patch)
treea1ae1cd830c86429f23724ea6c8175733b6e5584 /samples/scenarios/view.sh
parentdae8250ed871ed871a75b5e2eb0ab41879371950 (diff)
Add SDC deploy/clean scripts
- Added deploy/clean scripts for use in Clover container - Deployment of entire SDC scenario - Deployment includes istio install for manual sidecar injection without TLS authentication (deploy.sh) - Added Jaeger tracing and Prometheus monitoring install (view.sh) - Exposes NodePort for monitoring/tracing to access UIs outside of cluster - Clean.sh attempts to remove all of the above Change-Id: Id9548a77d71465a814a6e0cb1cbdf02d37235590 Signed-off-by: Eddie Arrage <eddie.arrage@huawei.com>
Diffstat (limited to 'samples/scenarios/view.sh')
-rwxr-xr-xsamples/scenarios/view.sh30
1 files changed, 30 insertions, 0 deletions
diff --git a/samples/scenarios/view.sh b/samples/scenarios/view.sh
new file mode 100755
index 0000000..8b155ce
--- /dev/null
+++ b/samples/scenarios/view.sh
@@ -0,0 +1,30 @@
+#!/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 Prometheus monitoring"
+
+kubectl apply -f $ISTIO_BASE_DIR/install/kubernetes/addons/prometheus.yaml
+
+echo "Deploying Jaeger tracing"
+
+kubectl apply -n istio-system -f https://raw.githubusercontent.com/jaegertracing/jaeger-kubernetes/master/all-in-one/jaeger-all-in-one-template.yml
+
+echo "Exposing tracing and monitoring outside of Kubernetes cluster"
+
+kubectl delete -n istio-system svc prometheus
+
+kubectl expose -n istio-system deployment jaeger-deployment --port=16686 --type=NodePort
+
+kubectl expose -n istio-system deployment prometheus --port=9090 --type=NodePort