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.
- 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.
- 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.
- A firewall rule named trafficallow is also created in both the VPC's to allow Ingress Traffic and also traffic through some specified ports.
- 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.
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.
- 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 .
- 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.
- It's time now to finally deploy the WORDPRESS application connected to the above shown database.
- Deployment successful.
**** THANK YOU ALL for investing your valuable time in having a look at this task****
Software Engineer 2 at Precisely | Trust in Data
4 年Great work
Trainee
4 年Good work !
Devops Engineer II | Git | Docker | Jenkins |Terraform | Linux | Cloud | AWS CSA | 2xGCP| Azure |Bamboo | Ansible
4 年Good luck ??
?? 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