Deploying WordPress on top of Google Cloud Platform along with Kubernetes Integration

Deploying WordPress on top of Google Cloud Platform along with Kubernetes Integration

So finally here I am with the successful completion of Google Cloud Platform task and here goes the self reflection of it.

What is Cloud Computing?

Cloud Computing is the delivery of different services through the Internet. These resources include tools and applications like data storage, servers, databases, networking, and software.As long as an electronic device has access to the web, it has access to the data and the software programs to run it. Some of the public and private clouds are : Amazon AWS , Microsoft Azure , OpenStack , GCP and many more.

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

GCP -> the public cloud

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.

The core cloud computing products in Google Cloud Platform include:

  • Google Compute Engine, which is an infrastructure-as-a-service (IAAS) offering that provides users with virtual machine instances for workload hosting.
  • Google App Engine, which is a platform-as-a-service (PASS) offering that gives software developers access to Google's scalable hosting. Developers can also use a software developer kit (SDK) to develop software products that run on App Engine.
  • Google Cloud Storage, which is a cloud storage platform designed to store large, unstructured data sets. Google also offers database storage options, including Cloud Datastore for NoSQL nonrelational storage, Cloud SQL for MySQL fully relational storage and Google's native Cloud Bigtable database.
  • Google Container Engine, which is a management and orchestration system for Docker containers that runs within Google's public cloud. Google Container Engine is based on the Google Kubernetes container orchestration engine.

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

TASK OVERVIEW :-

  • Create two projects : Developer and Production.
  • Create a VPC n/w for the both of the individual projects.
  • Link both the VPC networks through VPC Peering.
  • Create a Kubernetes Cluster in the Developer project and launch a web application on top of it along with the Load Balancers.
  • Create SQL server in the Production project and create a database.
  • Now, finally connect the SQL database to the Web application launched in Kubernetes Cluster.

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

  • The two projects devpro and productpro are being created.
No alt text provided for this image
  • An instance named os1 and a VPC n/w named lab including the subnet lab1 is created in Singapore (asia-southeast1) region in the devpro project.
No alt text provided for this image
No alt text provided for this image
  • Likewise an instance named os2 and a VPC n/w named lab including the subnet lab2 is created in South Carolina (us-east1) region in the productpro project.
No alt text provided for this image
No alt text provided for this image
  • A firewall rule named trafficallow is also created in both the VPC's to allow Ingress Traffic and also traffic through some specified ports.
No alt text provided for this image
  • Now further both the VPC networks are being linked through the VPC Peering namely devpeer and productpeer. This peering can be confirmed as the status in both the projects is active. Also one can ping the IP's after successfull peering.
No alt text provided for this image


No alt text provided for this image

With this the first half of the project is now completed. Moving on to the second half of the project.

  • Launch a kubernetes cluster in Singapore region i.e in the devpro project for launching the frontend i.e the WORDPRESS application inside a POD. The cluster is launched in Regional type so that the nodes can be distributed among different zones in a region.
No alt text provided for this image
  • Here GKE (Google Kubernetes Engine) will be used for deploying the Wordpress application in the k8s cluster.Here, you can even see the Load Balancers and their external IP's connected to mywp .
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 creating the backend for this WordPress site.
  • Inside the productpro , MySQL database is being launched and a database named mytaskdb is created for handling the whole db of the wordpress site.
No alt text provided for this image
No alt text provided for this image
No alt text provided for this image
  • It's time now to finally deploy the WORDPRESS application connected to the above shown database.
No alt text provided for this image
  • Deployment successful.
No alt text provided for this image

**** THANK YOU ALL for investing your valuable time in having a look at this task****




SAI HARSHA VARDHAN A.V.N

Software Engineer 2 at Precisely | Trust in Data

4 年

Great work

Himanshu Singh

Devops Engineer II | Git | Docker | Jenkins |Terraform | Linux | Cloud | AWS CSA | 2xGCP| Azure |Bamboo | Ansible

4 年

Good luck ??

Bobby Singh

?? Immediate Joiner | DevOps & Cloud Engineer | 3x RedHat | 3x Microsoft | Aviatrix Certified Engineer | Multi-Hybrid Cloud | Solution Architecture | Kubernetes | Jenkins | CI/CD Expert

4 年

Great job

要查看或添加评论,请登录

Sujagi Verma的更多文章

  • Ransomware Attacks in the Cloud

    Ransomware Attacks in the Cloud

    A Growing Threat to AWS Users and How to Stay Safe Ransomware has evolved from a nuisance to a top-tier threat…

    3 条评论
  • WordPress Application using Amazon RDS as a backend !!

    WordPress Application using Amazon RDS as a backend !!

    What is WordPress ? WordPress is a free, open-source website creation platform which requires access to database to…

  • Instance-Volume Attachment using Terraform

    Instance-Volume Attachment using Terraform

    A terraform code for all the below mentioned steps is being provided- Create a key pair Create a security group Launch…

    3 条评论
  • Companies that got benefitted from AWS - KIA MOTORS

    Companies that got benefitted from AWS - KIA MOTORS

    AWS has significantly more services, and more features within those services, than any other cloud provider–from…

  • Automate a dynamic Infrastructure over AWS using Terraform

    Automate a dynamic Infrastructure over AWS using Terraform

    What is Terraform : Terraform is an open-source infrastructure as code software tool that enables you to safely and…

  • Automate K8s Multi Node Cluster Over AWS using Ansible

    Automate K8s Multi Node Cluster Over AWS using Ansible

    Kubernetes Cluster - A Kubernetes cluster is a set of node machines for running containerized applications. If you’re…

  • High Availability Architecture using AWS CLI

    High Availability Architecture using AWS CLI

    The Architecture includes- Webserver configured on EC2 Instance. Document Root (/var/www/html) made persistent by…

    2 条评论
  • Controlling Hadoop Storage

    Controlling Hadoop Storage

    >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Big Data :- Big data is a collection of large…

    6 条评论
  • Getting started with AWS-CLI !

    Getting started with AWS-CLI !

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

社区洞察

其他会员也浏览了