X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=service-exposure%2Fstop_pods.sh;h=1bc83f6f2b050ca537365c86accf45ea7d53f9d0;hb=1c7c5fc52d531205e3bd639fc4f2189c49f296cc;hp=86f22efd66710a3d9346724c2aaa27b781839c99;hpb=073269a87bdbe3ef450d933d0e7e6a5f730c8b67;p=nonrtric.git diff --git a/service-exposure/stop_pods.sh b/service-exposure/stop_pods.sh old mode 100644 new mode 100755 index 86f22efd..1bc83f6f --- a/service-exposure/stop_pods.sh +++ b/service-exposure/stop_pods.sh @@ -19,7 +19,22 @@ # ============LICENSE_END========================================================= # +export host=$(kubectl get nodes -o wide | tail -1 | sed s'/ */ /'g | cut -f6 -d' ') + +echo "Undeploying applications..." +echo "---------------------------" +curl http://$host:31570/uninstall?chart=rapp-helloworld-invoker1 +echo "" +sleep 2 +curl http://$host:31570/uninstall?chart=rapp-helloworld-invoker2 +echo "" +sleep 2 +curl http://$host:31570/uninstall?chart=rapp-helloworld-provider +echo "" + kubectl delete -f rapps-helm-installer.yaml kubectl delete -f rapps-istio-mgr.yaml kubectl delete -f rapps-keycloak-mgr.yaml kubectl delete -f chartmuseum.yaml +kubectl delete -f rapps-webhook.yaml +kubectl delete -f MutatingWebhookConfiguration.yaml