zkt26/z2/stop-app.sh

12 lines
342 B
Bash

.#!/usr/bin/env bash
set -e
echo "Stopping Notes App..."
kubectl delete -f k8s/deployment.yaml --ignore-not-found
kubectl delete -f k8s/service.yaml --ignore-not-found
kubectl delete -f k8s/statefulset.yaml --ignore-not-found
kubectl delete -f k8s/configmap.yaml --ignore-not-found
echo "App stopped. Namespace and volumes are preserved."