zkt25/z2/stop-app.sh

9 lines
275 B
Bash

#!/bin/bash
set -e
kubectl delete -f service.yaml --ignore-not-found=true
kubectl delete -f deployment.yaml --ignore-not-found=true
kubectl delete -f statefulset.yaml --ignore-not-found=true
kubectl delete namespace z2app --ignore-not-found=true
echo "Application stopped."