Launching website(Wordpress) on top of Kubernetes cluster with Database connectivity by using GCP services.
Google cloud platform (GCP) is a tool for cloud computing where user can use the same technologies used by Google products like Google search, YouTube, Gmail etc.
In GCP there are numerous API’s and Engines which enables the user to use Google’s virtual hardware and software, which has higher rate of computing power and performance. We can operate virtual operating system, Create website and link with database, and create n numbers of clusters using Kubernetes in various regions / zones offered by Google.
Task:
1. Create multiple projects namely developer and producer
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.
1. Creation of Multiple projects:
PS: “Make sure you link your projects with billing account”
2. Create VPC network for both the projects
Virtual Private Cloud (VPC) is a configuration pool for sharing computing resources. In GCP, virtual private network provides networking functionality to Google compute engine virtual machine (VM) instance, Google Kubernetes Engine (GKE), and App engine environment.
VPC for Developer project:
VPC for production project:
3. Create a link between both VPC using VPC peering.
Google Cloud VPC Network Peering allows internal IP address connectivity across two Virtual Private Cloud (VPC) networks regardless of whether they belong to the same project or the same organization.
4. Create a Kubernetes Cluster in developer project and launch any web application(Wordpress) with the Load balancer
Kubernetes (K8s) is used for automating deployment, scaling, and management of containerized applications
Step 1: Install gcloud in the base OS:
Link:https://dl.google.com/dl/cloudsdk/channels/rapid/GoogleCloudSDKInstaller.exe
Step 2: Download Kubectl.exe
Link: https://storage.googleapis.com/kubernetes-release/release/v1.16.14/bin/windows/amd64/kubectl.exe
Step3: Create Kubernetes cluster in developer project:
To check: kubectl.exe get nodes -> It will show the created nodes.
5. Create a SQL server in the producer project and create a database
6. Connect the SQL database to the web application launched in the Kubernetes cluster.
Here I have successfully completed the task given by my mentor Mr. Vimal Daga sir. I am also thankful to Linuxworld Pvt Ltd for giving me the opportunity to explore and learn Google Cloud Platform.