Python code run command:
python dupids.py passwd.txt
One liner shell command:
Postgres configbash one-liner.sh
cd task-2/postgres
terraform init
terraform apply
terrafom output displays IP of PostgreSQL
Webapp
Contains flask app,
use "task-2/postfres/build-and-push.sh" to build and push the docker image
GCR repo
cd task2-/gcr
terraform init
terraform apply
Kubernetes cluster creation
Creates and updates kubeconfig to use newly created cluster,
use "task-2/kubernetes-cluster/google-create-cluster.sh"
Kubernetes deployments
Creates Nginx Ingress to serve webapp created previously
use "task-2/nginx/install-nginx.sh" to create Nginx Ingress
Deploy webapp
kubectl apply -f task-2/kubernetes-deployments/flaskapp