mytfenv/clean-boday-it.sh
2026-11-13 12:48:00 -06:00

11 lines
519 B
Bash
Executable file

# 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