zkt24-sk1/scripts/stop-app.sh

16 lines
439 B
Bash

#!/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