mytfenv/clean-boday-it.sh

12 lines
519 B
Bash
Raw Normal View History

2026-11-13 18:48:00 +00:00
# 1. Helm's release records (what causes the "name still in use" error)
docker compose exec k3s-cluster kubectl delete secret -n default -l owner=helm,name=boday-it
# 2. The release's resources
docker compose exec k3s-cluster kubectl delete -n default \
deployment/boday-it-web statefulset/boday-it-db \
svc/boday-it-web svc/boday-it-db \
ingress/boday-it-ingress secret/boday-it-secrets
# 3. Check: only the PVC should remain
docker compose exec k3s-cluster kubectl get all,ingress,pvc -n default | grep boday