Multi-tier architecture using Kubernetes on Google Cloud using Terraform.

In this project, I am going to create an infrastructure having Wordpress on top of Google kubernetes Engine and SQL database for its backend management over Google cloud platform.

Let us move to the file

Next is the file where we specify the required providers.

Creating VPC for each project and VPC Peering.

Configuring GKE(Google Kubernetes Engine)

Configuring the SQL Database

Right now I am setting the authorized networks as which means everyone will be able to connect to the SQL Database.
I am still researching on how to change this to a more secure setup.

Configuring Wordpress in the Kubernetes cluster

Connecting to the site:

Proof that the WordPress site is connected to the same SQL Instance that I have created.

Thats all !! Do leave your valuable feedbacks . For any queries or correction feel free to contact.

Worked in collaboration with Daksh Jain