16 lines
345 B
Bash
Executable File
16 lines
345 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Delete the Django Service
|
|
kubectl delete -f k8s/service.yaml
|
|
|
|
# Delete the Django Deployment
|
|
kubectl delete -f k8s/deployment.yaml
|
|
|
|
# Delete the StatefulSet and related objects
|
|
kubectl delete -f k8s/statefulset.yaml
|
|
|
|
# Delete the namespace
|
|
kubectl delete -f k8s/namespace.yaml
|
|
|
|
echo "All Kubernetes objects deleted successfully."
|