0% found this document useful (0 votes)
79 views5 pages

GCP 16 Apr Ref

Cloud computing refers to IT services like compute, storage, databases, and networks that are provided over the internet. The main types of cloud services are Infrastructure as a Service (IaaS), Platform as a Service (PaaS), and Software as a Service (SaaS). Google Cloud Platform (GCP) provides these services across different regions and zones. In GCP, projects are used to logically organize resources, users, and billing. Resources can be managed using the GCP console, Cloud Shell, command line tools, or APIs.

Uploaded by

Rahul Shetty
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
79 views5 pages

GCP 16 Apr Ref

Cloud computing refers to IT services like compute, storage, databases, and networks that are provided over the internet. The main types of cloud services are Infrastructure as a Service (IaaS), Platform as a Service (PaaS), and Software as a Service (SaaS). Google Cloud Platform (GCP) provides these services across different regions and zones. In GCP, projects are used to logically organize resources, users, and billing. Resources can be managed using the GCP console, Cloud Shell, command line tools, or APIs.

Uploaded by

Rahul Shetty
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 5

Cloud Computing

---------------------------
- cloud computing refers to IT services i.e. compute, databases,
storage, networks, security etc.

IAAS
- the service provider offers virtualized hardware or computing
infrastrcuture
- VM, volumns, etc.

PAAS
- offers application platforms and tools over the cloud which
enables application development

SAAS
- offers a software or applications as service, these
applications are ready to use, hosted on provider's infra

Cloud Providers
-----------------------
- AWS
- Azure
- GCP

GCP Infrastructure
---------------------------

- Region
- geographical area
- 22

- Zone
- actual data center
- zone is the actual deployment area

Project
-------------
- all resources are tied up with a project
- a project helps to segragate the resources i.e. users, billing, vms,
storage buckets in logical manner

Individual account GSuite


Account
| |
-------------------------------------------------------- ------------------
---------------------------------------------
Project1 Folder1 Organization1
Organization2
| |
---------------------- ------------------------
---
Project2 Project3 Project1 Project2
Ways to manage GCP resources
----------------------------------------

1. Using Google Cloud Console


- GUI to manage the resources
- console.cloud.google.com

2. Using Cloud Shell


- it is a VM provisioned for you by GCP
- Cloud Shell comes with Cloud SDK gcloud, Cloud Code, an online
Code Editor and other utilities pre-installed, fully
authenticated and up to date
- command line interface
- i.e. gcloud, gsutil, bq, kubectl, docker, npm, git etc.
- also has built in code editor

3. install cloud SDK, and required tools on your system

4. using developer tools / plugins for IDEs


- eclipse, netbeans, STS
- VS Code
- IntelliJ Idea
- any editor

5. Mobile app

6. using cloud apis


- programmatic interface

> gcloud projects list

> gcloud config set project <<projectid>>

Services offered by GCP


--------------------------------

- Compute

- storage & database

- Identity & Access management, Security

- Networking

- Management

- CI/CD tools

- .....
Compute Engine
-------------------------
- abstracts the underlying hardware
- create VMs using this service with specific machine type / storage /
firewall rules etc.
- specify region / zone
- specify OS using machine image
-

- VM
- region/zone
- machine type - vCPU & RAM
- a boot disk
- additional disks if required
- network interface
- firewall rules

Persistent Disk
---------------------------
- Standard Persistent Disk

- SSD Persistent Disk

- Balanced Persistent Disk

sudo apt update -y


sudo apt install apache2 -y
cd /var/www/html
sudo chown -R $USER /var/www
echo "Welcome to my app" > index.html

- Machine Image
- it is compute engine resource that stores all the configuration,
metadata, permissions and data from one or more disk required to
create vm
- source = instance

- Snapshot
- reflects the contents of the persistent disk
- backup data from a disk
- smaller size than image size (caz they do not contain OS)
- differential backups
- snapshots can be shared between project
- can be created for running disk

- source = a disk

- Image
- same as snapshot, but includes OS and boot loader
- source = a disk
- can't be created on running disk

- Instance Template
- it is a template for configuration of a VM Instance
- specify machine type, boot disk, additional disks, image, firewall,
other property

#! /bin/bash
apt-get update
apt-get install apache2 -y
a2ensite default-ssl
a2enmod ssl
vm_hostname="$(curl -H "Metadata-Flavor:Google" \
http://169.254.169.254/computeMetadata/v1/instance/name)"
echo "Page served from: $vm_hostname" | \
tee /var/www/html/index.html

- Instance Group
---------------------
- collection/group of multiple vm instances

1. Managed Instance Group (MIG)


- autoscaling
- automatically grow/shrink the number of instances based
on some criteria

- autohealing
- we can setup health checks, if it fails, MIG will
recreate the instance

- load balancing
- distribute the traffic accross all the instances

2. Unmanaged Instance group

- load balancing
- distribute the traffic accross all the instances

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy