Skip to content

Commit 96f3d3d

Browse files
committed
update container naming
1 parent bd308be commit 96f3d3d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

deployKubernetes.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ services=("collaboration-service" "matching-service" "question-service" "user-se
1010
# Loop through each service
1111
for i in "${!services[@]}"; do
1212
SERVICE="${services[$i]}"
13-
SERVICE_NAME="cs3219-ay2425s1-project-g25-${SERVICE}"
13+
SERVICE_NAME="cs3219-ay2425s1-project-g25_${SERVICE}"
1414
K8S_DEPLOYMENT_FILE="kubernetes/backend/${SERVICE}-deployment.yaml"
1515
K8S_HPA_FILE="kubernetes/hpa/${SERVICE}-hpa.yaml"
1616

@@ -46,7 +46,7 @@ done
4646

4747
# frontend
4848
SERVICE="frontend"
49-
SERVICE_NAME="cs3219-ay2425s1-project-g25-${SERVICE}"
49+
SERVICE_NAME="cs3219-ay2425s1-project-g25_${SERVICE}"
5050
K8S_DEPLOYMENT_FILE="kubernetes/frontend/${SERVICE}-deployment.yaml"
5151
FULL_IMAGE_NAME="$DOCKER_USERNAME/$SERVICE_NAME:$TAG"
5252
echo "Tagging image $SERVICE as $FULL_IMAGE_NAME..."
@@ -62,7 +62,7 @@ echo "Deployment for $SERVICE complete."
6262
echo "----------------------------------------"
6363

6464
# nginx
65-
SERVICE_NAME="cs3219-ay2425s1-project-g25-nginx"
65+
SERVICE_NAME="cs3219-ay2425s1-project-g25_nginx"
6666
K8S_DEPLOYMENT_FILE="kubernetes/backend/nginx-deployment.yaml"
6767
FULL_IMAGE_NAME="$DOCKER_USERNAME/$SERVICE_NAME:$TAG"
6868
echo "Tagging image $SERVICE as $FULL_IMAGE_NAME..."

0 commit comments

Comments
 (0)