From f72ac6e2663b06adda814ef4b66a1268b7b50237 Mon Sep 17 00:00:00 2001 From: oleh Date: Wed, 9 Apr 2025 23:29:29 +0200 Subject: [PATCH] upd scripts --- z2/prepare-app.sh | 4 ++++ z2/start-app.sh | 6 ++---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/z2/prepare-app.sh b/z2/prepare-app.sh index b1613b9..3792345 100644 --- a/z2/prepare-app.sh +++ b/z2/prepare-app.sh @@ -5,4 +5,8 @@ docker build -t battleship-backend ./backend echo "Building Docker image for frontend" docker build -t battleship-frontend ./frontend +echo "Creating namespace battleship-app" +kubectl apply -f namespace.yaml +echo "Creating StatefulSet for MySQL" +kubectl apply -f statefulset.yaml -n battleship-app echo "Docker images built." diff --git a/z2/start-app.sh b/z2/start-app.sh index 4ad1945..12ea7bb 100644 --- a/z2/start-app.sh +++ b/z2/start-app.sh @@ -1,12 +1,10 @@ #!/bin/bash -echo "Creating namespace battleship-app" -kubectl apply -f namespace.yaml + echo "Creating Deployment for backend and frontend" kubectl apply -f deployment.yaml -n battleship-app -echo "Creating StatefulSet for MySQL" -kubectl apply -f statefulset.yaml -n battleship-app + echo "Creating Service for MySQL, backend, and frontend" kubectl apply -f service.yaml -n battleship-app