-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathdeploying-services.sh
39 lines (30 loc) · 1.12 KB
/
deploying-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
38
39
#!/bin/bash
sudo -s
echo "Deploying Services"
mkdir /home/services4 && cd /home/services4
git clone https://github.com/sidd-harth/aio
cd aio/kubernetes/kube-injected/
echo "Creating Project and enabling istio-injection"
oc new-project aio
oc adm policy add-scc-to-user privileged -z default -n aio
oc label namespace aio istio-injection=enabled
#oc get pods -w -n istio-system
oc project aio
echo "Deploying Movies Service"
oc apply -f movies-v1-deployment-injected.yml -n aio
oc create -f movies-service.yml -n aio
oc expose svc movies -n aio
echo "Deploying Booking Service"
oc apply -f booking-v1-deployment-injected.yml -n aio
oc create -f booking-service.yml -n aio
oc expose svc booking -n aio
echo "Deploying Payment Service"
oc apply -f payment-v1-deployment-injected.yml -n aio
oc create -f payment-service.yml -n aio
oc expose svc payment -n aio
echo "Deploying UI Service"
oc apply -f ui-v1-deployment-injected.yml -n aio
oc create -f ui-service.yml -n aio
oc expose svc ui -n aio
oc get routes
while true; do curl -s http://movies-aio.${gcp_external_IP}.nip.io | grep --color -E 'payment-v2|$' ; sleep .5; done