This commit is contained in:
parent
eddfa96bee
commit
e9c7fdc029
1 changed files with 12 additions and 0 deletions
12
destroy-tf-force.sh
Executable file
12
destroy-tf-force.sh
Executable file
|
|
@ -0,0 +1,12 @@
|
||||||
|
#!/bin/bash
|
||||||
|
echo "1. Entferne alle physischen K3s-Ressourcen..."
|
||||||
|
docker exec local-k3s-platform kubectl delete ingress,service,deployment,statefulset,pvc -l app.kubernetes.io/instance=boday-it -n default --ignore-not-found=true --force --grace-period=0
|
||||||
|
|
||||||
|
echo "2. Lösche das geheime Helm-Release-Protokoll aus der K3s-Datenbank..."
|
||||||
|
# Helm speichert Releases als Secrets mit dem Typ 'sh.helm.release.v1...'
|
||||||
|
docker exec local-k3s-platform kubectl delete secret -n default -l owner=helm,name=boday-it --ignore-not-found=true --force --grace-period=0
|
||||||
|
|
||||||
|
echo "3. Atempause für die Cluster-API..."
|
||||||
|
sleep 2
|
||||||
|
echo "Cluster ist absolut jungfräulich sauber!"
|
||||||
|
docker exec local-k3s-platform kubectl delete ingress,service,deployment,statefulset,pvc,secret -l app.kubernetes.io/instance=boday-it -n default --ignore-not-found=true
|
||||||
Loading…
Reference in a new issue