16 lines
305 B
Bash
16 lines
305 B
Bash
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
echo "Stopping the Kubernetes..."
|
|
|
|
kubectl delete -f deployment.yaml --ignore-not-found=true
|
|
|
|
kubectl delete -f service.yaml --ignore-not-found=true
|
|
|
|
kubectl delete -f statefulset.yaml --ignore-not-found=true
|
|
|
|
kubectl delete -f namespace.yaml --ignore-not-found=true
|
|
|
|
echo "Deleted!"
|