Created
May 14, 2020 08:30
-
-
Save ualmtorres/c1698a99e8d5d32d095b58627c67c43d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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" | |
kubectl apply -f autoscaler.yml | |
kubectl get hpa --namespace=demo --watch |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment