generated from PrivateAIM/python-template
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
12 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,22 @@ | ||
#!/bin/bash | ||
eval $(minikube -p minikube docker-env) | ||
|
||
#kubectl delete all deploymets with test in name | ||
#kubectl delete all deployments with test in name | ||
kubectl delete deployment $(kubectl get deployments | grep test | awk '{print $1}') | ||
|
||
kubectl delete service postgresql-service | ||
kubectl delete deployment po | ||
kubectl delete service po-service | ||
kubectl delete serviceaccount po-sa | ||
kubectl delete rolebinding po-sa-binding | ||
kubectl delete secret po-sa-token | ||
kubectl delete deployment postgresql | ||
kubectl delete secret harbor-credentials | ||
kubectl delete deployment base | ||
kubectl delete deployment po-nginx | ||
kubectl delete service po-nginx-service | ||
kubectl delete configmap po-nginx-config | ||
kubectl delete networkpolicy po-analysis-network-policy | ||
|
||
sleep 3 | ||
docker rmi 'po:latest' | ||
docker rmi 'po:latest' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters