18 lines
666 B
Bash
Executable File
18 lines
666 B
Bash
Executable File
#!/bin/bash
|
|
echo "=== Destroying Kubernetes Application ==="
|
|
|
|
echo "Deleting Deployment and web App Service..."
|
|
kubectl delete -f deployment.yaml --ignore-not-found=true
|
|
kubectl delete -f service.yaml --ignore-not-found=true
|
|
|
|
echo "Deleting StatefulSet, PVC, PV and Headless Service..."
|
|
kubectl delete -f statefulset.yaml --ignore-not-found=true
|
|
|
|
echo "Deleting ConfigMap..."
|
|
kubectl delete configmap mysql-initdb-config --namespace=smartbuilding-namespace --ignore-not-found=true
|
|
|
|
echo "Deleting Namespace (this might take a moment)..."
|
|
kubectl delete -f namespace.yaml --ignore-not-found=true
|
|
|
|
echo "=== All Kubernetes objects have been dropped successfully! ==="
|