-
Notifications
You must be signed in to change notification settings - Fork 0
/
start_services.sh
37 lines (25 loc) · 873 Bytes
/
start_services.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
#!/bin/sh
# Generate templates
make -f k8s-tpl.mak templates
# start services
make -f eks.mak start
# start previsions
make -f k8s.mak provision
# prevision context
kubectl config set-context --current --namespace=c756ns
# create and deploy metrics server
kubectl apply -f https://github.com/kubernetes-sigs/metrics-server/releases/latest/download/components.yaml
# deploy autoscaling for db service
kubectl create -f ./cluster/10-db-hpa.yaml
# deploy autoscaling for s1 service
kubectl create -f ./cluster/10-s1-hpa.yaml
# deploy autoscaling for s2 service
kubectl create -f ./cluster/10-s2-hpa.yaml
# deploy autoscaling for s3 service
kubectl create -f ./cluster/10-s3-hpa.yaml
# print grafana url
make -f k8s.mak grafana-url
#print kiali url
make -f k8s.mak kiali-url
#print prometheus url
make -f k8s.mak prometheus-url