-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeployPaymentServices.sh
30 lines (22 loc) · 1.01 KB
/
deployPaymentServices.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
#!/bin/bash
kubectl delete -f payment-service-deployment.yaml
echo '================Building packages==============\n'
mvn -f ../payment-service/clientApi/pom.xml install -DskipTests
mvn -f ../pom.xml package -DskipTests -pl payment-service
echo '================Building docker images==============\n'
docker build ../payment-service/ -t payment-service:0.0.1
docker images -a | grep -service
echo '================Loading docker images==============\n'
kind load docker-image payment-service:0.0.1
echo '================Deploying applications==============\n'
kubectl apply -f payment-service-deployment.yaml
echo '================List services==============\n'
kubectl get service
echo '================List Deployments==============\n'
kubectl get deployments
echo '================Sleep 10 seconds==============\n'
sleep 3
echo '================List Deployments==============\n'
kubectl get deployments
# echo '================Checking logs (order-service)==============\n'
# kubectl logs -l app=order-service --tail=20