Launching your Web Application on GCP

Sri Sravya
5 min readAug 30, 2020

Google cloud platform(GCP) is one of the finest services provided by OOGLE and is part of google cloud.

It provides a suite of cloud computing services and Infrastructure as a service,platform as a service and serveless computing, for data analytics,machine learning,storage and many more…

Products in GCP:

There are over 90 products in gcp,here are few:

Compute(App engine,compute engine,kubernetes engine,etc..)

Storage and Databases(CLoud storage,SQL,Bigtable…)

Networking(cloud CDN,cloud DNS,VPC,Load Balancing and many )

For complete details,visit:

Services provided by gcp are:

Google Compute Engine,Google App Engine,Google Kubernetes Engine,Google Cloud Bigtable,Google BigQuery,Google Cloud Functions,Google Cloud Datastore,Google Cloud Storage.

USECASE: To deploy a complete web application

Here, i have launced my wordpress application with Mysql(sql server).

It’s a piece of cake for those who are familiar with other public cloud services like AWS,Azure…

Services and products used in this task:

  1. kubernetes engine(for scaling,replicas,load balancing)
  2. Compute engine(vms)
  3. Cloud SQl
  4. Networking(VPC)
  5. Identity and Security(IAM)
  6. API

Steps to be followed:

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.

It is easy to signup into gcp and for registration you need to provide credit card(preferrable)/debit carddetails.

Next, Inorder to perform anything on gcp,you have to create a project and enable required products API’s

You can also perform these from CLI or Cloud shell of GCP.

Step1: I have created two projects named devproject and prodproject.

Step2: Creating VPC networks for both the projects.

To know about vpc, visit this :

Initially i have created for devproject later on prodproject and made a VPC peering.

In devproject:

After creating vpc network,

Create a firewall rule :

Step-3:Later on create a cluster on kubernetes engine:

VMS created

now,using CLI we are ready to create deployments and launch any web application with the Load balancer(can also done using GUI)

Load balancer automatically created

And Now using External Ip we can go into our website :)

Wordpress Site

Step-4: Creating Vpc in prodproject and VPC Peering(allows connectivity between 2 vpc’s)

To know more about VPC Peering:

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

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

My Webapp successfully launced ❤

We can also scale-up as per our traffic and requirements.

So in a very few steps and in less than an hour,you can launch your web application and gcp is very smooth and easy to use and very effective cloud service.

--

--