docc-lab / train-ticket-k8s-setup

0 stars 1 forks source link

Add remove deployment to make file of forked tt repo #2

Open RoyZhang7 opened 1 month ago

RoyZhang7 commented 1 month ago

It looks like forked repo doesn't allow creating issues. So, I add an issue relevant to our forked tt repo here. I can use the following cmds to remove the entire tt deployment in k8s, so probably worth adding them as a flag to Makefile in tt.

kubectl delete deployment --all
kubectl delete statefulset --all
kubectl get services | grep -v kubernetes | awk '{print $1}' | xargs kubectl delete service
#helm list
helm uninstall nacos
helm uninstall nacosdb
helm uninstall nfs-subdir-external-provisioner
helm uninstall rabbitmq
helm uninstall tsdb
kubectl delete namespace openebs
kubectl delete crd blockdeviceclaims.openebs.io
kubectl delete crd blockdevices.openebs.io
RoyZhang7 commented 1 month ago

kubectl delete pvc --all kubectl delete pv --all