-
Notifications
You must be signed in to change notification settings - Fork 17
/
setup.sh
executable file
·50 lines (36 loc) · 1.09 KB
/
setup.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#!/bin/bash
YLW='\033[1;33m'
NC='\033[0m'
CURRENT_DIR=$(pwd)
## Deploy Istio
cd $CURRENT_DIR/istio
/bin/bash ./istio-install.sh
## Deploy the Dynatrace Operator
cd $CURRENT_DIR/dynatrace/kubernetes
./deploy-operator.sh
## wait 1 minute for OneAgent to report to Dynatrace
sleep 60s
## Configure Maintenance Window to silence kube-proxy tcp connectivity problem
cd $CURRENT_DIR/dynatrace/kubernetes/kube-proxy
./create-kube-proxy-maintenance-window.sh
## Configure Anomaly Detection Rules
cd $CURRENT_DIR/dynatrace/alerting
./create-anomaly-detection-rules.sh
## Deploy EasyTravel app
cd $CURRENT_DIR/easytravel/scripts
./create_easytravel.sh
./get-easytravel-urls.sh
## Configure Dynatrace for EasyTravel
cd $CURRENT_DIR/easytravel/dynatrace
./config-dt-webapps.sh
## Deploy Sock Shop app
cd $CURRENT_DIR/sockshop/scripts
./deploy-sockshop.sh -istio
./get-sockshop-urls.sh -istio
./create-sockshop-accounts.sh
## Configure Dynatrace for Sock Shop
cd $CURRENT_DIR/sockshop/dynatrace
./config-dt-webapps-synth.sh -istio
## Create dashboards
cd $CURRENT_DIR/dynatrace/dashboards
./create-dashboards.sh