diff options
author | Eddie Arrage <eddie.arrage@huawei.com> | 2018-04-13 19:15:29 +0000 |
---|---|---|
committer | Eddie Arrage <eddie.arrage@huawei.com> | 2018-04-14 00:53:09 +0000 |
commit | 41051bbbdec39f4ccd1795b936c1d14fea1fe01b (patch) | |
tree | e632c27da3a9cb161868cab96d9d03151469b4f7 /samples/scenarios/clean.sh | |
parent | ffd7c93b70144f412cd90601646730a2773c2ea3 (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/clean.sh')
-rwxr-xr-x | samples/scenarios/clean.sh | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/samples/scenarios/clean.sh b/samples/scenarios/clean.sh new file mode 100755 index 0000000..bf4a7af --- /dev/null +++ b/samples/scenarios/clean.sh @@ -0,0 +1,28 @@ +#!/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 "Deleting Service Delivery Controller sample scenario" + +kubectl delete -f ./samples/scenarios/service_delivery_controller_opnfv.yaml + +echo "Deleting Istio" + +kubectl delete -f $ISTIO_BASE_DIR/install/kubernetes/istio.yaml + +echo "Deleting Prometheus monitoring and Jaeger Tracing" + +kubectl delete -n istio-system -f https://raw.githubusercontent.com/jaegertracing/jaeger-kubernetes/master/all-in-one/jaeger-all-in-one-template.yml + +kubectl delete -f $ISTIO_BASE_DIR/install/kubernetes/addons/prometheus.yaml |