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