upd scripts

This commit is contained in:
oleh 2025-04-09 23:29:29 +02:00
parent 31d49d2fcb
commit f72ac6e266
2 changed files with 6 additions and 4 deletions

View File

@ -5,4 +5,8 @@ docker build -t battleship-backend ./backend
echo "Building Docker image for frontend" echo "Building Docker image for frontend"
docker build -t battleship-frontend ./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." echo "Docker images built."

View File

@ -1,12 +1,10 @@
#!/bin/bash #!/bin/bash
echo "Creating namespace battleship-app"
kubectl apply -f namespace.yaml
echo "Creating Deployment for backend and frontend" echo "Creating Deployment for backend and frontend"
kubectl apply -f deployment.yaml -n battleship-app 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" echo "Creating Service for MySQL, backend, and frontend"
kubectl apply -f service.yaml -n battleship-app kubectl apply -f service.yaml -n battleship-app