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

Step 1: Create multiple projects namely developer and production.

First create the project developer

Now lets create the project production

Step 2: Create VPC network for both the projects

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.

Step 3: Create a link between both the VPC networks using VPC Peering

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

Step 4: Create a Kubernetes Cluster in developer project

Step 5: Launch any web application with the Load balancer

First we will connect to kubernetes cluster using gcloud command.

Now launch wordpress application in kubernetes

Now we will create the Load Balancer

Step 6: Create a SQL server in the production project and create a database

Before creating the database let’s create an userin SQL

Now let’s create one database in the SQL

Step 7: Connect the SQL database to the web application launched in the Kubernetes cluster

Thank You!!

--

--

--

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

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Migrating a WSGI Python application to Serverless on AWS

The most frequently used Git commands to initial or modify with your repositories

git_stage

NumHow to remove nan value from Numpy array in Python?

“Operation not supported” error while accessing NFS mount

Making Music using Assembly, Part 2

A Beginner’s dive in Binary Search Trees — Part 2

AWS DynamoDb and Local Dev

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 💻

More from Medium

[Study Notes] Docker

PART 1 Install of Saas based Appdynamics client on Linux for app server agent

OpenShift Local Lab Setup on RHEL VM

GCP Certification — let’s sail together.