01 Introduction To GCP
01 Introduction To GCP
GCP Infrastructure
Architecting with Google Compute Engine
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
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
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
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
Compute
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.”
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
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
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
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.
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
3. Click
and sign in using the provided credentials
5. Follow the lab instructions and when you are done click
Most labs are designed to be standalone, that is, you need to end lab when you finish
each lab.
Lab: Console and Cloud Shell
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
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
© 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
© 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
Console
https://console.cloud.google.com/
Documentation
https://cloud.google.com/docs/
Training
https://cloud.google.com/training/
Certification
https://cloud.google.com/certification/