Infra to deploy a GKE kubernetes cluster on GCP plus a HA Postgres database.
This project contains three directories:
- app - It's the application itself. Read the
readme.md
. - k8s - kubernetes manifests to deploy the application;
- terraform -
.tf
files to deploy the GKE cluster and the PostgreSQL database;
- Docker;
- Terraform;
- gcloud CLI;
- GCP;
- kubectl;
Before you deploy your terraform
you've to make sure you have all the necessary permissions:
Examples:
gcloud auth login
gcloud projects list
gcloud config set project <my-project>
gcloud auth application-default login
gcloud iam service-accounts create sa-terraform — display-name
gcloud projects add-iam-policy-binding PROJECT_ID — member="serviceAccount:sa-terraform@PROJECT_ID.iam.gserviceaccount.com" — role="roles/cloudsql.admin"
https://cloud.google.com/iam/docs/service-accounts https://cloud.google.com/sql/docs/postgres/admin-api https://cloud.google.com/service-infrastructure/docs/service-networking/getting-started https://cloud.google.com/compute/docs/reference/rest/v1 https://cloud.google.com/sdk/docs
👤 Tadeu Bernacchi
- Website: http://www.tadeubernacchi.com.br/
- Twitter: @tadeuuuuu
- Github: @tbernacchi
- LinkedIn: @tadeubernacchi
Give a ⭐️ if this project helped you!