Deploy Wordpress GCP using GKE and Cloud SQL

Task Description

1. Create multiple projects namely developer and production

2. Create VPC network for both the projects

3. Create a link between both the VPC networks using VPC Peering

4. Create a Kubernetes Cluster in developer project and launch any web application with the Load balancer

5. Create a SQL server in the production project and create a database

6. Connect the SQL database to the web application launched in the Kubernetes cluster

First create the project developer

Now lets create the project production

First let’s create the VPC for developer.

Similarly create VPC for production.

Also we have to create the firewall rue for both the VPC

First let’s create firewall rule for developer

Similarly we can create firewall rule for production.

First create VPC peering from production VPC.

Again we have to do the same from developer VPC.

Now we can see that the status is also active from production VPC

First we will connect to kubernetes cluster using gcloud command.

Now launch wordpress application in kubernetes

Now we will create the Load Balancer

Before creating the database let’s create an userin SQL

Now let’s create one database in the SQL

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Aditya Raj

Aditya Raj

I'm passionate learner diving into the concepts of computing 💻