14 lines
506 B
Bash
14 lines
506 B
Bash
#!/bin/bash
|
|
echo "Stopping the application by scaling down to 0 replicas"
|
|
|
|
echo "Scaling down the Deployment for backend to 0"
|
|
kubectl scale deployment battleship-backend -n battleship-app --replicas=0
|
|
|
|
echo "Scaling down the Deployment for frontend to 0"
|
|
kubectl scale deployment battleship-frontend -n battleship-app --replicas=0
|
|
|
|
echo "Scaling down the StatefulSet for MySQL to 0"
|
|
kubectl scale statefulset battleship-mysql -n battleship-app --replicas=0
|
|
|
|
echo "Application stopped, data is preserved."
|