zkt25/z2/stop-app.sh

20 lines
385 B
Bash

#!/bin/bash
# Delete the Deployment
kubectl delete -f deployment.yaml
# Delete the Service
kubectl delete -f service.yaml
# Delete the StatefulSet
kubectl delete -f statefulset.yaml
# Delete the Database Service
kubectl delete -f db-service.yaml
# Delete the Database Deployment
kubectl delete -f db-deployment.yaml
# Delete the namespace
kukubectl delete namespace my-namespace