0% found this document useful (0 votes)
85 views27 pages

01 Introduction To GCP

This document provides an introduction and agenda for a course on architecting with Google Compute Engine. It will cover Google Cloud Platform infrastructure, using GCP, labs and demos, and conclude with a quiz. The course consists of three parts: foundations of networks and virtual machines, core GCP services as basic building blocks, and scaling and automation techniques to increase the power of infrastructures built on GCP. It introduces key GCP compute services like Compute Engine, Kubernetes Engine, App Engine, and Cloud Functions.

Uploaded by

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

01 Introduction To GCP

This document provides an introduction and agenda for a course on architecting with Google Compute Engine. It will cover Google Cloud Platform infrastructure, using GCP, labs and demos, and conclude with a quiz. The course consists of three parts: foundations of networks and virtual machines, core GCP services as basic building blocks, and scaling and automation techniques to increase the power of infrastructures built on GCP. It introduces key GCP compute services like Compute Engine, Kubernetes Engine, App Engine, and Cloud Functions.

Uploaded by

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

Introduction to

GCP Infrastructure
Architecting with Google Compute Engine

CONSOLE AND CLOUD SHELL, INFRASTRUCTURE PREVIEW


Agenda ● Google Cloud Platform (GCP)
Infrastructure
● Using GCP
● Labs and Demos
● Quiz

Before we start using all of the different services that GCP offers, we need to talk
about what GCP is. Once you understand the infrastructure from a high level, you're
going to learn how to use GCP. Using what you learned, you will be able to interact
with the platform in two short labs.
To round up your learning experience, I will provide a quick demo of projects.
Google Cloud Platform

Google Cloud Ecosystem


Open- Other
Source Cloud
Providers Developers
Software Providers
Third-Party
Partners Software

Chrome Google Cloud Google


Search
Google Maps Google Analytics
Google G Suite
Devices gMail

GCP

When you take a look at Google Cloud, you’ll see that it's actually part of a much
larger ecosystem. This ecosystem consists of open-source software, providers,
partners, developers, third-party software and other cloud providers. Google is
actually a very strong supporter of open source software.
Google Cloud consists of Chrome, Google Devices, Google Maps, gMail, Google
Analytics, G Suite, Google Search and the Google Cloud Platform or GCP. GCP itself,
is a computing solution platform that really encompasses three core features:
infrastructure, platform, and software.
GCP is...

A continuously expanding
set of cloud-based
products and services

In GCP, there is usually


more than one solution

You can think of GCP as a suite of cloud-based products and services that is
continuously expanding. Many of the products and services have unique blue
hexagonal logos such as the one shown on this slide.
It’s important to understand that there is usually more than one solution for a task or
application in GCP. To better understand this, let’s look at a solution continuum.
Solution continuum

Google Cloud Platform Products and Services

IaaS PaaS SaaS


Clusters
CPUs, Memory Servers Serverless,
Cluster
Disks, Interfaces VM Instances Autoscaling
Management

IT Ops SysOps DevOps Low Ops No Ops

Managing components: Managing systems: Managing resources:


component health, system availability, users and identities,
component function and system performance, access to resources,
performance, component system costs resource consumption
backup and replacement

Google Cloud Platform spans from Infrastructure as a Service (IaaS) to Software as a


Service (SaaS). You really can build applications on GCP for the web or mobile that
are global, autoscaling, and assistive, and that provide services where the
infrastructure is completely invisible to the user. It is not just that Google has opened
the infrastructure that powers applications like search, gmail, maps, and G Suite.
Google has opened all of the services that make these products possible and
packaged them up for your use.

Alternative solutions are possible. For example, you could start up your own VM in
GCE, install open source MySQL on it, and run it just like a MySQL database on your
own computer in a data center. Or, you could use the Cloud SQL service, which
provides a MySQL instance and handles rote work like backups and security patching
for you, using the same services Google does to automate backups and patches. Or,
you could move to a noSQL database that is autoscaling and serverless so that
growth no longer requires adding server instances or possible changing the design to
handle the new capacity.

Notice that each alternative solution on the continuum causes concern about different
objects, which changes the role of the operations staff and changes the items that are
being managed.
Infrastructure analogy
users

infrastructure applications

Let’s start with the infrastructure. An IT infrastructure is like a "city infrastructure."


The infrastructure is the basic underlying framework of fundamental facilities and
systems such as transport, communications, power, water, fuel and other essential
services.
The people in the city are like "users," and the cars and bikes and buildings in the city
are like "applications." Everything that goes into creating and supporting those
applications/buildings for the users/citizens is the infrastructure.
The purpose of this course is to explore, as efficiently and clearly as possible, the
infrastructure services provided by GCP. You should become familiar enough with the
infrastructure services that you will know what the services do and basically how to
use them.
By the end of this class, you will be prepared to learn anything that you need to know
to architect with Compute Engine. In other words, we won’t go into very deep dive
case studies on specific vertical applications, but you'll know enough to put all the
building blocks together to build your own solution.
GCP offers a range of compute services

Compute

Compute Google App Engine Cloud


Engine Kubernetes Functions
Engine

Now, GCP offers a range of compute services. The service that might be most familiar
to newcomers is Compute Engine, which lets you run virtual machines on demand in
the cloud. It’s Google Cloud’s Infrastructure-as-a-Service solution. It provides
maximum flexibility for people who prefer to manage server instances themselves.

GKE lets you run containerized applications on a cloud environment that Google
manages for you, under your administrative control. Think of containerization as a
way to package code that’s designed to be highly portable and to use resources very
efficiently and think of Kubernetes as a way to orchestrate code in containers.

App Engine is GCP’s fully managed Platform-as-a-Service framework. That means it’s
a way to run code in the cloud without having to worry about infrastructure. You just
focus on your code, and let Google deal with all the provisioning and resource
management. You can learn a lot more about App Engine in the specialization
“Developing Applications in Google Cloud Platform.”

Cloud Functions is a completely serverless execution environment, or


Functions-as-a-Service. It executes your code in response to events, whether those
occur once a day or many times per second. Google scales resources as required,
but you only pay for the service while your code runs. The specialization “Developing
Applications in Google Cloud Platform” also discusses Cloud Functions.

In this course, Compute Engine is our main focus.


Architecting with Google Compute Engine

Scaling and
Foundation Core services
automation
● Introduction to GCP ● Cloud IAM ● Interconnecting Networks
● Virtual Private Cloud ● Data Storage Services ● Load Balancing
Networking ● Resource Management ● Autoscaling
● Virtual Machines ● Resource Monitoring ● Infrastructure Automation
with Cloud API
● Infrastructure Automation
with Deployment Manager
● Managed Services

This class consists of three parts:


1. Foundation: Networks and virtual machines
2. Core services: the basic building blocks
3. Scaling and automation: systems built on top of the basics that multiply their
power
Agenda ● Google Cloud Platform (GCP)
Infrastructure
● Using GCP
● Labs and Demos
● Quiz

Let’s look at how to use GCP.


Google Cloud Shell

Cloud Console ● The Web UI comes with a CLI


● The CLI has Google Cloud SDK
GCP pre-installed

● Cloud Shell is…


console.cloud.google.com ● A tiny ephemeral VM
● CLI pre-installed
○ gcloud
○ gsutil
Cloud Shell ● SDK APIs pre-installed
● 5 GB user data persists
● OS + SW is reconstituted
○ After 30 minutes
Google Cloud SDK ○ If there is a connection
interruption

There are three basic ways you can interact with the Google Cloud Platform.
You can use the Google Cloud Platform Console which provides a web-based,
graphical user interface that you access through console.cloud.google.com.
If you prefer to work in a terminal window, the Google Cloud SDK provides the gcloud
command-line tool.
GCP also provides Cloud Shell, which is a browser-based, interactive shell
environment for GCP that you can access from the GCP console. Cloud Shell is
temporary virtual machine with 5 GB of persistent disk storage that has the Google
Cloud SDK pre-installed.
Lab conventions: Console

2 3

This is how the instruction will


appear in your lab guide:

On the Navigation menu, click Compute Engine > VM instances

Throughout this course, you will apply what you learn in different labs. These labs will
have instructions to use the GCP console, such as, “On the Navigation menu,, click
Compute Engine > VM instances.” Let’s dissect these instructions.
First, within the GCP console you will click on the icon with the three horizontal lines
which is the Navigation menu, as you see on the left. This opens a menu as you can
see on the right. All of the major products and services are listed in this menu.
Second, within the menu, hover over “Compute Engine” to open a submenu.
Finally, click on “VM Instances” within the submenu.
You will get more comfortable with these instructions and the GCP console as you
work on labs.
Lab conventions: Cloud Shell

An example of what the command output should


Items in black boxes with white type look like:
are command line instructions you
enter in Cloud Shell or an SSH username@train-infra: gcloud compute list
terminal:
Your active configuration is:
gcloud compute list [cloudshell-30772]
[component_manager]
disable_update_check = True
Usually you can copy and paste [compute]
these commands if desired. gce_metadata_read_timeout_sec = 5
[core]
account = [email protected]
That's often useful for more check_gce_metadata = False
complex commands. disable_usage_reporting = False
project = train-infra
[metrics]
environment = devshell

username@train-infra:~$

Labs will also use command-line instructions. You will enter these instructions either
in Cloud Shell or an SSH terminal by simply copying and pasting them. The right side
of this slide, shows an example of what a command and its output will look like. In
some cases, you will have to modify these commands, for example, when choosing a
globally unique name for a Cloud Storage bucket.
API interfaces
OAuth 2 is used for all authentication.

GCP RESTful API

get, post, put, delete


JSON

Google Cloud Client Libraries


Languages

Google Cloud SDK

Java Python NodeJS Ruby Go PHP


gcloud gsutil

CLI
tools bq

Besides the Cloud SDK, you will also use client libraries that enable you to easily
create and manage resources. GCP client libraries expose APIs for two main
purposes:
App APIs provide access to services and they are optimized for supported languages,
such as Node.js and Python.
Admin APIs offer functionality for resource management. For example, you can use
admin APIs if you want to build your own automated tools.
Agenda ● Google Cloud Platform (GCP)
Infrastructure
● Using GCP
● Labs and Demos
● Quiz

Slides are great for explaining concepts, but let’s apply what we just talked about.
Run a lab

1. Click

2. Note the Connection Details

3. Click
and sign in using the provided credentials

4. Accept terms and note the project ID

5. Follow the lab instructions and when you are done click

When ready to begin:


1. Click Start Lab
2. Note the lab's username, password, and project ID
3. Click Open Google Console and sign in to Cloud Console with these
credentials
4. Accept the terms and note the project set for you.
5. Follow the lab instructions and when you are done click End Lab. The account
will be wiped out and removed. You'll lose all work you have in the project.

Most labs are designed to be standalone, that is, you need to end lab when you finish
each lab.
Lab: Console and Cloud Shell

Objectives Completion: 20 minutes

In this lab, you learn how to perform the Access: 40 minutes


following tasks:

● Get access to GCP


● Create a Cloud Storage bucket
using the GCP Console
Cloud Cloud
● Create a Cloud Storage bucket Storage Shell

using Cloud Shell


● Become familiar with Cloud Shell
features

In this first lab, you'll explore the GCP interface and the entry point of the graphical
user interface that's called the console. Within the console, you will create a storage
bucket in Cloud Storage which is Google’s unified object storage. Then, you will
repeat the same task using Cloud Shell, which is the text-based user interface in
GCP.
You're encouraged to develop familiarity with both console and Cloud Shell, and to
become comfortable moving back and forth between them.

The lab will take about 20 minutes to complete, but you have 40 minutes before it
times out.
Demo: Projects

In this demo you will see how to create, delete, and switch contexts between
projects.

Next, we will explore projects, which are the key organizer of infrastructure resources
and relate these resources to billing accounts. Resources can only be created and
consumed within projects, in a way that projects isolate related resources from one
another.
You will see how to create, delete, and switch contexts between projects. Some of
these actions cannot be performed in the Qwiklabs environment due to security
restrictions; therefore, I am going to demonstrate them in my environment.
Lab: Infrastructure Preview

Objectives Completion: 15 minutes

In this lab, you learn how to perform the Access: 30 minutes


following tasks:

● Use Google Cloud Platform


Marketplace to build a Jenkins
Cloud
Continuous Integration Deployment
Manager

environment
● Verify that you can manage the
service from the Jenkins UI
● Administer the service from the
Virtual Machine host through SSH

In this lab, you're going to experience the power of GCP automation by setting up a
complete Jenkins continuous integration environment using Google Cloud Platform
Marketplace. You will then verify that you can manage the service from the Jenkins UI
and administer the service from the VM host through SSH.
Now, you could accomplish a very similar result through manual configuration in a
couple of days. But in this lab, you'll see it set up in only a few minutes. Specifically,
the lab will take about 15 minutes to complete, but you have 30 minutes before it
times out.
Agenda ● Google Cloud Platform (GCP)
Infrastructure
● Using GCP
● Labs and Demos
● Quiz

Slides are great for explaining concepts, but let’s apply what we just talked about.
Quiz

Is there usually more than one solution for a task or application in Google Cloud
Platform?

1. Yes
2. No

© 2018 Google LLC. All rights reserved. Google and the Google logo are trademarks of Google LLC. All other
company and product names may be trademarks of the respective companies with which they are associated.
Quiz

Is there usually more than one solution for a task or application in Google Cloud
Platform?

1. Yes*
2. No

© 2018 Google LLC. All rights reserved. Google and the Google logo are trademarks of Google LLC. All other
company and product names may be trademarks of the respective companies with which they are associated.

1. Yes. It’s important to understand that there is usually more than one solution
for a task or application in GCP. To better understand this, I recommend
reviewing the slide on the solution continuum which illustrates that GCP spans
from Infrastructure as a Service, through Platform as a Service, to Software as
a Service.
2. No. There usually is more than one solution for a task or application in Google
Cloud Platform.
Quiz

Which of the following tools allow you to interact with Google Cloud Platform (select 2)?

1. Cloud Console which is a web-based, graphical user interface that you access
through console.cloud.google.com.
2. Google Cloud Wi-Fi hotspot which is available in some cities.
3. Google Cloud SDK which is a command-line interface that can be installed locally
or accessed through Cloud Shell.
4. Google Cloud Operator which is a phone service that uses speech recognition to
transmit your commands.

© 2018 Google LLC. All rights reserved. Google and the Google logo are trademarks of Google LLC. All other
company and product names may be trademarks of the respective companies with which they are associated.
Quiz

Which of the following tools allow you to interact with Google Cloud Platform (select 2)?

1. Cloud Console which is a web-based, graphical user interface that you access
through console.cloud.google.com. *
2. Google Cloud Wi-Fi hotspot which is available in some cities.
3. Google Cloud SDK which is a command-line interface that can be installed locally
or accessed through Cloud Shell.*
4. Google Cloud Operator which is a phone service that uses speech recognition to
transmit your commands.

© 2018 Google LLC. All rights reserved. Google and the Google logo are trademarks of Google LLC. All other
company and product names may be trademarks of the respective companies with which they are associated.

1. Yes. You can use Cloud Console which provides a web-based, graphical user
interface that you access through console.cloud.google.com.
2. No. There is no Google Cloud Wi-Fi hotspot nor a phone service that uses
speech recognition to interact with GCP.
3. Yes. If you prefer to work in a terminal window, Google Cloud SDK provides
the gcloud command-line tool. The Cloud SDK can also be accessed through
Cloud Shell, which is a browser-based, interactive shell environment for GCP
that you can access from the GCP console.
4. No. There is no Google Cloud Wi-Fi hotspot nor a phone service that uses
speech recognition to interact with GCP.
Quiz

What is the difference between Cloud Console and Cloud Shell?

1. Cloud Console is a command-line tool, while Cloud Shell is a graphical user


interface
2. Cloud Shell is a command-line tool, while Cloud Console is a graphical user
interface
3. Cloud Shell is a locally installed tool, while Cloud Console is a temporary virtual
machine.
4. There is no difference as these tools are 100% identical.

© 2018 Google LLC. All rights reserved. Google and the Google logo are trademarks of Google LLC. All other
company and product names may be trademarks of the respective companies with which they are associated.
Quiz

What is the difference between Cloud Console and Cloud Shell?

1. Cloud Console is a command-line tool, while Cloud Shell is a graphical user


interface
2. Cloud Shell is a command-line tool, while Cloud Console is a graphical user
interface*
3. Cloud Shell is a locally installed tool, while Cloud Console is a temporary virtual
machine.
4. There is no difference as these tools are 100% identical.

© 2018 Google LLC. All rights reserved. Google and the Google logo are trademarks of Google LLC. All other
company and product names may be trademarks of the respective companies with which they are associated.

1. No
2. Yes. The GCP Console is a graphical user interface and Cloud Shell is a
command-line tool. Both tools allow you to interact with GCP. Even though
Cloud Console can do things Cloud Shell can't do and vice-versa, don’t think
of them as alternatives, but think of them as one extremely flexible and
powerful interface.
3. No.
4. No.
More resources

Google Cloud Platform


https://cloud.google.com/

Console
https://console.cloud.google.com/

Documentation
https://cloud.google.com/docs/

Training
https://cloud.google.com/training/

Certification
https://cloud.google.com/certification/

You might also like