Google Cloud Platform Workshop

Image for post
Image for post
Image for post
Image for post
I completed these two quests by myself, Just with the 2-day workshop knowledge and continuing...

Google Cloud Platform (GCP), offered by Google, is a suite of cloud computing services that runs on the same infrastructure that Google uses internally for its end-user products, such as Google Search, Gmail, file storage, and YouTube. Alongside a set of management tools, it provides a series of modular cloud services including computing, data storage, data analytics and machine learning.

Google Cloud Platform is essentially a public cloud-based machine whose services are delivered to customers on an as-you-go basis, by way of service components.

Creation of a Project:

Image for post
Image for post
Image for post
Image for post

You can easily create a project in GCP, using WebUI as well as CLI. A project consists of a set of users; a set of APIs; and billing, authentication, and monitoring settings for those APIs.

Using CLI, we can create project as:

After creating Project, You will have to Setup a Billing Account for the same.

Creation of VPC in GCP:

Image for post
Image for post
Image for post
Image for post
Image for post
Image for post
Image for post
Image for post
Creating VPC and Subnet

VPC(Virtual Private Cloud) is an on-demand configurable pool of shared computing resources allocated within a public cloud environment, providing a certain level of isolation between the different organizations (denoted as users hereafter) using the resources. It enables us to launch resources into a virtual network that you’ve defined. This virtual network closely resembles a traditional network that you’d operate in your own data center, with the benefits of using the scalable infrastructure of GCP. VPC provide us border , which isolate us from outside .

Creation of VPC Peering:

Image for post
Image for post
Image for post
Image for post

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.

VPC Network Peering enables you to connect VPC networks so that workloads in different VPC networks can communicate internally. Traffic stays within Google’s network and doesn’t traverse the public internet.

Note: You will have to create VPC Peering for Both Zones, i.e. USA and Singapore. Status is Inactive Till another VPC Peering is not Created in. As soon as, VPC Peering is created, They Become Active.

Google Cloud SDK Setup:

Image for post
Image for post
Image for post
Image for post
Image for post
Image for post
Image for post
Image for post
Image for post
Image for post
Image for post
Image for post
Setting up Google Cloud SDK

It’s the Gcloud command line tool. The gcloud CLI manages authentication, local configuration, developer workflow, interactions with Google Cloud APIs. With the gcloud command-line tool, it’s easy to perform many common cloud tasks. It includes Client Libraries, gsutil, bq, kubectl, Cloud Shell, Emulators etc.

Creation of Firewall Rule:

Image for post
Image for post
Image for post
Image for post
Image for post
Image for post
Image for post
Image for post

A Firewall is the Defense Mechanism which prevents the access of Outer Network Entities. For Creating a Web Server, we will have to change the firewall rule to allow traffic from Port Number: 80.

Creation of Kubernetes Cluster:

Image for post
Image for post
Image for post
Image for post
Image for post
Image for post

Creation of Cluster using CLI:

Image for post
Image for post
Image for post
Image for post
Image for post
Image for post

Kubernetes have a inbuilt capacity to keep on watching a container (POD) . As soon as, OS goes down or fails they automatically launch another OS . Kubernetes manages docker and having a feature of Load Balancing and Service Discovery. Kubernetes is an open-source container-orchestration system for automating application deployment, scaling, and management. Kubernetes is used to manage the complete Infrastructure because kubernetes is good in launching the container in a second and also manages the container automatically. A pod is a collection of containers and its storage inside a node of Kubernetes cluster .

Creation of MySQL Database:

Image for post
Image for post
Image for post
Image for post
Image for post
Image for post
Image for post
Image for post

Here, We created a MySQL DataBase in other zone to connect it with our Kuberenetes Cluster. So that they can work together.

Now, The Task is to Deploy an Application using App Engine with the Integration of K8S Cluster and MySQL DB.

(I couldn’t complete it as I was not having complete GCP account but using Qwiklabs to complete the task, So I couldn’t integrate the two instances.)

But I did followed everything in Command Line $gcloud too. and Launched Nginx and a Cluster separately without Integration.

Creation of another VM instance for this;

Image for post
Image for post
Image for post
Image for post
Image for post
Image for post
Image for post
Image for post
Image for post
Image for post
Image for post
Image for post

This is how I launched with some SSH commands and queries, I forgot to take screenshot :(

After this I launched the Cluster Application:

Image for post
Image for post

At last, I tried something different, using Network LoadBalancing and HTTP LoadBalancing, I deployed two application in single project with different instances.

Image for post
Image for post
Image for post
Image for post
Image for post
Image for post
Image for post
Image for post

This is How I completed the task given by Mr. Vimal Daga sir, By making some changes, due to unavailability of resources. But I did complete all the tasks assigned by him individually and with Integration in One Project itself.

Feel free to give your Feedback or ask any Query/Doubt you have:

Written by

Technical Content Writer | Content Creator | Storyteller | Engineer | Investor

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store