ZKT26/Z2/z2/stop-app.sh

13 lines
471 B
Bash

#!/bin/bash
echo "==> Deleting all objects in namespace notes-app..."
kubectl delete -f service.yaml --ignore-not-found
kubectl delete -f deployment.yaml --ignore-not-found
kubectl delete -f statefulset.yaml --ignore-not-found
kubectl delete -f namespace.yaml --ignore-not-found
echo ""
echo "All Kubernetes objects removed."
echo "Note: The host directory /mnt/notes-postgres-data was NOT deleted."
echo "To also remove it, run: sudo rm -rf /mnt/notes-postgres-data"