diff --git a/scripts/stop-app.sh b/scripts/stop-app.sh index e69de29..24bf560 100644 --- a/scripts/stop-app.sh +++ b/scripts/stop-app.sh @@ -0,0 +1,15 @@ +#!/bin/bash + +cd ../shoptfront-productcatalogue-stockmanager-kubernetes + +# Eliminar despliegues en Kubernetes +echo "Deleting deployments from Kubernetes..." +kubectl delete -f shoptfront-deployment.yaml +kubectl delete -f productcatalogue-deployment.yaml +kubectl delete -f stockmanager-deployment.yaml + +# Eliminar imágenes Docker +echo "Removing Docker images..." +docker rmi microservicio1 +docker rmi microservicio2 +docker rmi microservicio3