Google Cloud Platform (GCP)

Google Cloud Platform (GCP)

Google Cloud Platform is a suite of public cloud computing services offered by Google. The platform includes a range of hosted services for compute, storage and application development that run on Google hardware. Google Cloud Platform services can be accessed by software developers, cloud administrators and other enterprise IT professionals over the public internet or through a dedicated network connection.

Google Cloud Platform offers services for compute, storage, networking, big data, machine learning and the internet of things (IoT), as well as cloud management, security and developer tools.

WORDPRESS

WordPress is the simplest, most popular way to create your own website or blog.WordPress is an open-source content management system licensed under GPLv2, which means that anyone can use or modify the WordPress software for free. 

Deployment of wordpress and database on google cloud platform

Task Description:

  • Create a project.
  • Create two VPC in project namely wordallow and production .
  • Connect both the VPCs using VPC peering, through the private network of Google. 
  • Launch a Kubernetes cluster in one VPC wordallow server and launch sql database in another VPC .
  • Launch wordpress inside the pod and do the LoadBalancing.
  • access the site from the LoadBalancer ip.
  • connect wordpress from the database.

Services Used Of GCP:-

  • vm instances
  • vpc network
  • kubernetes clusters
  • sql
  • LoadBalancing

Steps taken are as follows:-

  • As,we are using gwiklabs we cannot make our own new project,so we need to select a project from the already made project.
No alt text provided for this image
No alt text provided for this image


  • VPC named wordallow has been created.I have created only one subnet named Lab1 in this VPC and this subnet has been launched in the Asia-southeast1 region.
  • VPC named production has been created. One subnet named Lab2 has been created in this VPC and this subnet has been launched in the us-central-1 region.

Configuration of VPC:

No alt text provided for this image
No alt text provided for this image
No alt text provided for this image


  • Now I have connected both the VPCs using VPC peering i.e., the private network of Google. 

I have created a VPC peering named peer1 in the wordallow vpc of the project.

Configuration of VPC:

No alt text provided for this image
  • VPC Peering is not active now. We need to create a another peer2 with another VPC production of the project and connect the VPC of production project with the VPC of the wordallow. I have created a VPC peering named peer2 in the production vpc of the project.
No alt text provided for this image
  • Now both the VPC is active now.
No alt text provided for this image


After both the vpc peering, VPCs of both the projects has connected internally means that any instance in both these VPCs does not need any public network to connect with each other. They can connect using Google’s private network.

  • Now let's create Kubernetes cluster.
No alt text provided for this image
No alt text provided for this image
No alt text provided for this image
No alt text provided for this image
No alt text provided for this image


No alt text provided for this image


Now we need to launch database server.For that first create a sql instance and then create a database named db1.

No alt text provided for this image
No alt text provided for this image


These are the slave nodes launched in the cluster.

No alt text provided for this image


After the cluster is launch successfully we need to connect it .For that we need google sdk and kubectl installed in our system.Then I have launched load balancer using cmd and tried to access the site stored in the docker page.

No alt text provided for this image
No alt text provided for this image
No alt text provided for this image


Then I have launched wordpress on the top of k8s cluster and expose ,then we could access our database data stored in it.

No alt text provided for this image


Wordpress launched:

No alt text provided for this image
No alt text provided for this image


database connectivity:

No alt text provided for this image


Login:

No alt text provided for this image

wordpress dashboard:

No alt text provided for this image


First page at wordpress:

No alt text provided for this image
No alt text provided for this image

THANKYOU!



To view or add a comment, sign in

More articles by Anjali Ray

  • DOCKER CONFIGURATION USING ANSIBLE

    What is Docker? Docker is a tool designed to make it easier to create, deploy, and run applications by using…

  • Automation Using Python

    Why we use python for Automation? Python is object-oriented and functional. It lets programmers decide if functions or…

  • AWS CLI

    The AWS Command Line Interface (CLI) is a unified tool to manage your AWS services. With just one tool to download and…

  • GOOGLE IS ARTIFICIAL INTELLIGENE(AI) FIRST

    How Google uses Machine Learning to revolutionize the Internet World? Machine Learning will impact everything we do at…

  • AWS(Amazon Web Services)

    Amazon Web Services (AWS) is Amazon’s cloud web hosting platform that offers flexible, reliable, scalable, easy-to-use,…

  • BIG DATA

    WHAT IS BIG DATA? First of all BIG DATA is not a technology ,Its a problem.A problem to store large amount of data…

    1 Comment
  • Integrating terraform and aws with github

    Hello everyone,This is my mini but interesting project based on aws, terraform and github I'm very much thankful to…

Others also viewed

Explore content categories