Skip to content

Instantly share code, notes, and snippets.

@ualmtorres
Created May 14, 2020 08:25
Show Gist options
  • Save ualmtorres/9d89ca978d6f951c68e8e47f17da4cb8 to your computer and use it in GitHub Desktop.
Save ualmtorres/9d89ca978d6f951c68e8e47f17da4cb8 to your computer and use it in GitHub Desktop.
#!/bin/bash
kubectl apply -f deployment-sgbd.yml
kubectl apply -f deployment-sgapi.yml
kubectl apply -f deployment-sgapp.yml
kubectl apply -f services.yml
kubectl get deployments -n demo --watch
kubectl get services -n demo --watch
EXTERNAL_IP=`kubectl get services -n demo | grep "sgapp" | awk '{print $4}'`
echo -e "Abre en un navegador la EXTERNAL-IP: \033[0;31m${EXTERNAL_IP} \033[0;39m del servicio sgapp"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment