Skip to content

AnudeepKonaboina/GoogleCloudPlatform

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 

Repository files navigation

GoogleCloudPlatform

Table of Contents

Introduction

Google Cloud Platform is a suite of cloud computing services provided by Google in order to develop deploy and manage applications on cloud. This project has the learnings and notes about Google cloud Platform and its services and also some code for deploying services into Google App engine and also a script for deploying a list of services into GAE.

Notes

1.GCPTrainingNotes - https://github.com/AnudeepKonaboina/GoogleCloudPlatform/blob/main/notes/GCPTrainingNotes

2.GoogleAppEngine(Intro And Commands) - https://github.com/AnudeepKonaboina/GoogleCloudPlatform/blob/main/notes/GoogleAppEngine-IntroAndCommands

3.Installation of Gcloud CLI - https://github.com/AnudeepKonaboina/GoogleCloudPlatform/blob/main/notes/InstallingGcloudClient

Code

Contains a project for deploying kafka service into Google App Engine

Steps:

1.Install gcloud client using steps from https://github.com/AnudeepKonaboina/GoogleCloudPlatform/blob/main/notes/InstallingGcloudClient

2.Create a key and activate service account using that key using the commands in the IAM section of https://github.com/AnudeepKonaboina/GoogleCloudPlatform/blob/main/notes/GCPTrainingNotes

3.Open the kafkaservice directory - cd kafkaservice

4.Run the below command:

gcloud app --verbosity=debug -q deploy

Deployment

Deploying a service or a list of services/apps on GAE:

->Using the deploy servies script we can deploy any number of services or applications on GAE using the following command:

sh deploy_gae_service.sh -s "<list of services>" -p "<path to the main dir>"

Example:

Single service:
===============
sh deploy_gae_service.sh -s "kafkaservice" -p "/project/code"

List of services:
================
sh deploy_gae_service.sh -s "service1 service2" -p "/project/code"

Deploying a service or a list of services/apps on GAE using Terraform script:

For deploying kafka on GAE using Terraform ,we need to have terraform installed Steps: 1.Navigate to the service folder

cd <service folder>  Ex: cd kafkaservicedeployment/

2.Create an image out of the docker file and push it to the container registry

docker build -t <image_name>:<version> .  -- Ex: docker build -t kafka-image:v0.1

docker tag kafka-image:v0.1 <registry_name>/<project_name>/kafka-image:v0.1 -- Ex:asia.gcr.io/gcptutorials/kafka-image:v0.1

docker push asia.gcr.io/gcptutorials/kafka-image:v0.1

3.Run the below terrraform commands to deploy the service into GAE

terraform init 

terraform plan -out plan.out

terraform apply plan.out -auto-approve

Releases

No releases published

Packages

No packages published