-
Notifications
You must be signed in to change notification settings - Fork 0
/
deploy-apps.sh
executable file
·37 lines (27 loc) · 1.41 KB
/
deploy-apps.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/bash
kubectl apply -f ./k8s/templates/order-service/service.yaml
kubectl apply -f ./k8s/templates/order-service/deployment.yaml
kubectl apply -f ./k8s/templates/payment-service/service.yaml
kubectl apply -f ./k8s/templates/payment-service/deployment.yaml
kubectl apply -f ./k8s/templates/product-service/service.yaml
kubectl apply -f ./k8s/templates/product-service/deployment.yaml
kubectl apply -f ./k8s/templates/review-service/service.yaml
kubectl apply -f ./k8s/templates/review-service/deployment.yaml
kubectl apply -f ./k8s/templates/user-service/service.yaml
kubectl apply -f ./k8s/templates/user-service/deployment.yaml
kubectl apply -f ./k8s/templates/inventory-service/service.yaml
kubectl apply -f ./k8s/templates/inventory-service/deployment.yaml
kubectl apply -f ./k8s/templates/api-gateway/service.yaml
kubectl apply -f ./k8s/templates/api-gateway/deployment.yaml
if [ "$1" = "all" ]; then
kubectl apply -f ./k8s/templates/postgres/deployment.yaml
kubectl apply -f ./k8s/templates/postgres/service.yaml
kubectl apply -f ./k8s/templates/mongo/deployment.yaml
kubectl apply -f ./k8s/templates/mongo/service.yaml
kubectl apply -f ./k8s/templates/eventstore/deployment.yaml
kubectl apply -f ./k8s/templates/eventstore/service.yaml
kubectl apply -f ./k8s/templates/rabbitmq/deployment.yaml
kubectl apply -f ./k8s/templates/rabbitmq/service.yaml
else
echo "mysql, redis and other services may still be running"
fi