Last active
January 17, 2024 23:05
-
-
Save D4rk61/53163ffc2352e7bdb4c8a0473044c91f to your computer and use it in GitHub Desktop.
Init felsv-consiti-k8s.sh
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 | |
# Sistema version 0.0.1, ultimo cambio => Almacenar data de los documentos en mongodb | |
# Descargar dependencias | |
sudo apt update ; sudo apt install wget unzip | |
# Descargar repositorio e ingresando al proyecto | |
wget https://felsv.s3.us-east-2.amazonaws.com/kubernetes-gcp.zip | |
unzip kubernetes-gcp.zip | |
cd felsv-spring | |
git checkout add-spring-cloud | |
cd kubernetes | |
# Aplicando los kubernetes al cluster | |
kubectl apply -k kustomize | |
# Creacion de balanceadores de carga (para aws) | |
# Eliminamos el servicio ya existente | |
kubectl delete service api-gateway | |
# Exponemos el API Gateway | |
kubectl expose deployment api-gateway --type=LoadBalancer --port=8082 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment