forked from CS3219-AY2324S1/ay2324s1-course-assessment-g07
-
Notifications
You must be signed in to change notification settings - Fork 0
/
helm_deploy.sh
30 lines (23 loc) · 861 Bytes
/
helm_deploy.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
# Microservices directory -- less matchmaking, frontend
microservices=("chat-service" "collaboration-service" "editor-service" "eval-service" "history-service" "question-service" "user-service")
microservices_allowedOrigins=("editor-service" "history-service" "question-service" "user-service")
# Docker repository
repository="imrajsingh"
# Loop through each microservice
# for microservice in "${microservices_allowedOrigins[@]}"
for microservice in "${microservices[@]}"
do
# Go into the microservice directory
cd $microservice
cd k8
# Uninstall the service
helm uninstall $microservice
# Install the service (deploy)
helm install $microservice . -f $microservice-values.yaml
# Go back to the parent directory
cd ..
cd ..
echo "${microservice} deployed successfully"
echo ""
done