From 9eac2c94314907c1b3346d9ed259ac1bef55c5c4 Mon Sep 17 00:00:00 2001 From: Lopera Mendizabal Date: Thu, 18 Apr 2024 16:00:37 +0000 Subject: [PATCH] Actualizar 'scripts/stop-app.sh' --- scripts/stop-app.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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