15 lines
442 B
Bash
15 lines
442 B
Bash
#!/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
|
|
|
|
echo "Application deployed in Kubernetes."
|