Deploying application using Google cloud service

Google Cloud is a suite of Cloud Computing services offered by Google. The platform provides various services like compute, storage, networking, Big Data, and many more that run on the same infrastructure that Google uses internally for its end users like Google Search and YouTube.

GKE clusters are powered by the Kubernetes open source cluster management system. Kubernetes provides the mechanisms through which you interact with your cluster. You use Kubernetes commands and resources to deploy and manage your applications, perform administration tasks, set policies, and monitor the health of your deployed workloads.

On Google cloud i completed one task using GKE(Google kubernetes engine) overview of task given below

Task Details :

1. Create multiple projects namely developer and production

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

Before initiating download Google SDK tool for managing resources and hosting application from hyperlink below:

Google SDK

lets get started:

Step1: Created one project

Step 2: Creating VPC network in two different zone one in Singapore and other in US

Step 3: Creating VPC Peering to establish connection between two vpc enable to route traffic

Step 4: Creating firewall rule for ingress traffic

Step 5: Creating one cluster

For that we have to setup Node pool, Nodes, Networking in specified region

it will took around 5–10 minutes to create cluster

Step 6: For deploying application on we have to connect kubernetes cluster with GKE for that we are using Google SDK tool for that first we have to Log in to Google Cloud Platform using Google Cloud SDK

use this command to login into google cloud console

> gcloud auth login 

To view project you can use this command:

> gcloud project list 

To communicate with kubernetes cluster running on Google Cloud we have to update the kubeconfig file such that kubectl command is configured to contact to Google Kubernetes Engine .

> gcloud container clusters get-credentials (cluster_name) --region (cluster_region) --project (project_name)

To see node information you can use command as

> kubectl get nodes 

Step 6: To deploy the WordPress application using kubernetes we have to create deployment in kubernetes which using WordPress image.

kubectl create deployment (name) --image=(image_name)

To launch application on internet we have to expose our deployment on port 80 for that use command as

> kubectl expose deployment (deployment_name) --type=LoadBalancer --port=80

You can see whether all application and services are running by using command as

> kubectl get all

Step 7: To create the back end means to store the data of our application we are using MySQL database

Adding authorized network to public ip of MySQL Instance

you can see your database is ready in 10 minutes through Gui

Step 8: Creating new database in Mysql

Now our frontend connected with backend

Step 9: To launch application we are using external-ip of our application

to get external-ip use command as

> kubectl get all

copy external-ip and paste it on chrome

Finally I have completed the task of Google Cloud Platform Workshop on deploying application using Google cloud service such as GKE(Google kubernetes engine)

Thank you for reading!!

--

--

--

Recommended from Medium

21 DAYS RESPONSIVE CHALLENGE

Why do tech organizations sometimes end up in creating redundant software infrastructure and…

Food for Agile Thought #218

Sublime of Quality Assurance: Beyond Agile and Automated Testing

On an almost daily basis I get asked “how can we help your team accelerate x” ?

Typed Errors in Swift with the Result Type

Directsoft 5 Programming Software User Manual

Playing with Array.of() and Array.from()

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
Snehal Shinde

Snehal Shinde

More from Medium

Configuration of Custom Application for Merchant Center Commerce tools

A short introduction into Event Study Analysis (including Python code example)

Setting up HONEYPOTS in AWS Cloud (TOKYO & BAHRAIN region)

Developing Fan Hub (Part 1)