-
Notifications
You must be signed in to change notification settings - Fork 33
/
bookstore_setup_k8s.sh
38 lines (34 loc) · 1.44 KB
/
bookstore_setup_k8s.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
#!/bin/sh
echo "*** EKS Tooling-External DNS,Ingress Controller etc ***"
echo "----------Creating Namespaces"
curdir=$(pwd)
cd $curdir/infrastructure/k8s-tooling/namespaces
kubectl apply -f development.yaml
kubectl apply -f prod.yaml
kubectl apply -f appmesh-system.yaml
echo "----------Creating External DNS"
cd $curdir/infrastructure/k8s-tooling/external-dns
kubectl apply -f external-dns.yaml
echo "----------Creating ALB Controller."
cd $curdir/infrastructure/k8s-tooling/alb-controller
kubectl apply -f alb-ingress-controller.yaml
echo "----------Creating App Mesh Controller."
cd $curdir/infrastructure/k8s-tooling/app-mesh/appmesh-sa
helm upgrade --install --namespace appmesh-system bookstore-app-mesh .
cd $curdir/infrastructure/k8s-tooling/app-mesh/appmesh-controller
./appmesh-controller.sh
cd $curdir/infrastructure/k8s-tooling/app-mesh/mesh
kubectl apply -f development-mesh.yaml
kubectl apply -f prod-mesh.yaml
echo "----------Creating Metrics Server for HPA and Cluster Autoscaler."
cd $curdir/infrastructure/k8s-tooling/autoscaling-hpa-ca/
./autoscale.sh
echo "----------Creating Prometheus and Graphana for Monitoring and Alerting."
cd $curdir/infrastructure/k8s-tooling/monitoring
./install.sh
echo "----------Creating Network Policies to secure APIs."
cd $curdir/infrastructure/k8s-tooling/network-policy
./install.sh
echo "----------Creating Logging Setup (FluentBit, Elasticsearch and Kibana)."
cd $curdir/infrastructure/k8s-tooling/logging
./install.sh