40,81 €
Make the most of GCP's offerings to manage your data center workload and optimize deployments
Key Features
Book Description
On-premise data centers are costly to manage. If you need a data center but don't want to deal with a physical one, Google Cloud Platform (GCP) is the solution. With GCP, you can build, test, and deploy applications on Google's infrastructure.
Google Cloud Platform Administration begins with GCP fundamentals, with the help of which you will deploy your first app and gain an understanding of Google Cloud architecture and services. Furthermore, you will learn how to manage Compute, networking, and storage resources. As you make your way through the book, you will learn how to track and manage GCP's usage, monitoring, and billing access control. You will also be able to manage your GCP's access and permissions. In the concluding chapters, you will explore a list of different developer tools for managing and interacting with the GCP platform.
By the end of this book, you will have learned how to effectively deploy workloads on GCP.
What you will learn
Who this book is for
Google Cloud Platform Administration is for administrators, cloud architects, and engineers who want to leverage the upcoming Google Cloud Platform. Some basic understanding of cloud computing will be useful.
Das E-Book können Sie in Legimi-Apps oder einer beliebigen App lesen, die das folgende Format unterstützen:
Seitenzahl: 159
Veröffentlichungsjahr: 2018
Copyright © 2018 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, nor Packt Publishing or its dealers and distributors, will be held liable for any damages caused or alleged to have been caused directly or indirectly by this book.
Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.
Commissioning Editor: Vijin BorichaAcquisition Editor: Prachi BishtContent Development Editor: Arjun JoshiTechnical Editor: Sayali ThanekarCopy Editor:Safis EditingProject Coordinator: Kinjal BariProofreader: Safis EditingIndexer: Pratik ShirodkarGraphics: Jisha ChirayilProduction Coordinator: Arvindkumar Gupta
First published: September 2018
Production reference: 1290918
Published by Packt Publishing Ltd. Livery Place 35 Livery Street Birmingham B3 2PB, UK.
ISBN 978-1-78862-435-0
www.packtpub.com
Made possible because of my wife Monica and my Pup Shyla....
Mapt is an online digital library that gives you full access to over 5,000 books and videos, as well as industry leading tools to help you plan your personal development and advance your career. For more information, please visit our website.
Spend less time learning and more time coding with practical eBooks and Videos from over 4,000 industry professionals
Improve your learning with Skill Plans built especially for you
Get a free eBook or video every month
Mapt is fully searchable
Copy and paste, print, and bookmark content
Did you know that Packt offers eBook versions of every book published, with PDF and ePub files available? You can upgrade to the eBook version at www.packt.com and as a print book customer, you are entitled to a discount on the eBook copy. Get in touch with us at [email protected] for more details.
At www.packt.com, you can also read a collection of free technical articles, sign up for a range of free newsletters, and receive exclusive discounts and offers on Packt books and eBooks.
Ranjit Singh Thakurratan is a two-time published author and has over 10 years of multi-cloud expertise and works as a Principal Chief Architect at DellEMC. Ranjit holds a master's degree in Information Technology—infrastructure assurance and an engineering degree in computer science. He has presented at numerous conferences held at Boston, Washington DC, New York, Denver, and Dallas. He runs a technology blog and he can be reached via his Twitter handle, @RJAPPROVES and on Linkedin at RJApproves. Apart from technology, Ranjit is also interested in astrophysics, animal welfare, and open source projects.
Chirag Nayyar helps organizations initiate their digital transformation using the public cloud. He has been actively working on cloud platforms since 2013, providing consultancy to many organizations ranging from small businesses to enterprises. He holds a wide range of certifications from all major public cloud platforms. He also runs meetups and is a regular speaker at various cloud events. He has also reviewed Hands-On Machine Learning on Google Cloud Platform and Google Cloud Platform Cookbook, both by Packt Publishing.
If you're interested in becoming an author for Packt, please visit authors.packtpub.com and apply today. We have worked with thousands of developers and tech professionals, just like you, to help them share their insight with the global tech community. You can make a general application, apply for a specific hot topic that we are recruiting an author for, or submit your own idea.
Title Page
Copyright and Credits
Google Cloud Platform Administration
Dedication
Packt Upsell
Why subscribe?
Packt.com
Contributors
About the author
About the reviewer
Packt is searching for authors like you
Preface
Who this book is for
What this book covers
To get the most out of this book
Download the color images
Conventions used
Get in touch
Reviews
Introduction to Google Cloud Platform
Introduction to cloud computing
Introducing GCP
GCP services
Compute services
Storage services
Networking services
Big data
Data centers and regions
Relating AWS and Azure to GCP
Exploring GCP
Creating your first project
Using the command line
Summary
Google Cloud Platform Compute
Google Compute Engine
f1-micro bursting machine types
Mega-memory machine types
Images
Creating a VM instance
Preemptible VM instances
Live migration
Instance templates
Google App Engine
Kubernetes engine
Node pools
Google Cloud Functions
Summary
Google Cloud Platform Storage
Persistent storage
Google Cloud Storage buckets
Google Cloud Spanner
Google Cloud SQL
Google Cloud Bigtable
Summary
Google Cloud Platform Networking
VPC networks
Routes
Firewall
VPC network peering
Private Google access
Other networking concepts
Load balancing
Google Cloud CDN
Cloud VPN
Cloud interconnect
Summary
Google Cloud Platform Containers
Kubernetes concepts
Administering a cluster
Configuring cluster networking
Multi-zone clusters
Preemptible instances
Summary
Google Cloud Platform Operations
Stackdriver monitoring and logging
Logging
Stackdriver error reporting
Stackdriver debugger
Stackdriver profiler
Stackdriver Trace
Summary
Google Cloud Platform Identity and Security
Infrastructure and cloud platform security
Identity and access management
Key management service
Cloud security scanner
Data loss prevention
Security keys
Summary
Google Cloud Platform Billing
Billing concepts
Managing billing
Analyzing a billing account
Setting up a budget
Summary
Google Cloud Platform Tools
Deployment Manager
GCP marketplace
GCP Cloud SDK
Cloud API
Cloud shell
Summary
Other Books You May Enjoy
Leave a review - let other readers know what you think
Google Cloud Platform (GCP) is one of the fastest growing cloud technology providers in the market today. This book focuses on giving you an introduction to GCP and sets you on a path to becoming an expert as you learn more and delve deeper. Google has been a leader in implementing cutting-edge technologies within their data centers to bring user-friendly services to the masses. You will find that through GCP, Google has exposed these advanced technologies to the market. Now any application deployed in GCP can make use of these technologies, including containers, artificial intelligence, and machine learning.
This book hopes to give you a hands-on introduction to GCP. You will deploy virtual machines and containers using Kubernetes, and configure networking. This book also aims at giving you a high-level overview of the different products offered in GCP.
Google Cloud Platform Administration is for administrators, cloud architects, and engineers who want to leverage the up-and-coming GCP. Some basic understanding of cloud computing will be useful.
Chapter 1, Introduction to Google Cloud Platform, introduces you to GCP with an overview of history and its concepts.
Chapter 2, Google Cloud Platform Compute, lets you explore and learn more about Google's Compute Engine platform, which is used to deploy virtual machines.
Chapter 3, Google Cloud Platform Storage, introduces you to the different storage offerings in GCP.
Chapter 4, Google Cloud Platform Networking, explores all the rich networking constructs you have available in GCP.
Chapter 5, Google Cloud Platform Containers, is a fun chapter where you will learn how to deploy containers using Kubernetes.
Chapter 6, Google Cloud Platform Operations, will teach you about the Stackdriver suite of products, which lets you manage and debug your applications.
Chapter 7, Google Cloud Platform Identity and Security, teaches you about Google's identity and security functionality for securing your GCP environment.
Chapter 8, Google Cloud Platform Billing, teaches you about the various aspects of billing, including analyzing bills and setting up budgets.
Chapter 9, Google Cloud Platform Tools, explores the tools available for deploying your application and also the rich marketplace that is available for you to deploy to.
Before starting to read the book, some basic understanding of cloud computing would be useful. This book intends to launch your career with Google Cloud Platform. Continued and hands on learning is necessary to become an expert at GCP.
We also provide a PDF file that has color images of the screenshots/diagrams used in this book. You can download it here: https://www.packtpub.com/sites/default/files/downloads/9781788624350_ColorImages.pdf.
There are a number of text conventions used throughout this book.
CodeInText: Indicates code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles. Here is an example: "You can create an instance from an image using the Google Cloud Platform console, the gcloud command-line tool, or the API, by following these steps."
A block of code is set as follows:
kind: PersistentVolumeClaim apiVersion: v1 metadata: name: myvolumeclaim spec:
Any command-line input or output is written as follows:
$ kubectl exec -it mywebapp-1-68fb69df68-4tcpp -- /bin/bash
Bold: Indicates a new term, an important word, or words that you see onscreen. For example, words in menus or dialog boxes appear in the text like this. Here is an example: "Open up your workload and click on Expose."
Feedback from our readers is always welcome.
General feedback: If you have questions about any aspect of this book, mention the book title in the subject of your message and email us at [email protected].
Errata: Although we have taken every care to ensure the accuracy of our content, mistakes do happen. If you have found a mistake in this book, we would be grateful if you would report this to us. Please visit www.packt.com/submit-errata, selecting your book, clicking on the Errata Submission Form link, and entering the details.
Piracy: If you come across any illegal copies of our works in any form on the Internet, we would be grateful if you would provide us with the location address or website name. Please contact us at [email protected] with a link to the material.
If you are interested in becoming an author: If there is a topic that you have expertise in and you are interested in either writing or contributing to a book, please visit authors.packtpub.com.
Please leave a review. Once you have read and used this book, why not leave a review on the site that you purchased it from? Potential readers can then see and use your unbiased opinion to make purchase decisions, we at Packt can understand what you think about our products, and our authors can see your feedback on their book. Thank you!
For more information about Packt, please visit packt.com.
This chapter begins with a brief introduction to cloud computing. We then introduce the Google Cloud Platform (GCP) with an overview of its history and its concepts. We will then look into some of its concepts, tools, and services. We will also map and compare how Amazon Web Services (AWS) and Microsoft Azure public clouds match up to GCP products. Lastly, we will set up an account in GCP using the free tier that allows you a 12-month, $300 free trial of all GCP products.
In this chapter, we will cover the following:
Introduction to cloud computing
Introduction to GCP
GCP services
Data centers and regions
AWS and Azure in comparison to GCP
Exploring GCP
In the simplest terms, cloud computing is the practice of delivering computing services such as servers, storage, networking, databases, and applications over the internet. In such a delivery model, the consumer, typically a business or an enterprise, only pays for the resources they use without having to pay for the capital investment cost of building and maintaining the data centers.
There are both financial and technological benefits for adopting a cloud computing approach. Companies transform their capital costs to operational costs and are able to pay for what they use rather than pay for idle infrastructure. Cloud computing also eliminates the cost of purchasing and maintaining expensive hardware and data center space. The pay-as-you-go model allows for increasing or decreasing resource consumption without having to pre-purchase hardware.
Companies can also focus on rapid innovation without having to worry about the backend infrastructure's ability to support it. Cloud companies are rapidly introducing new services on high performance hardware platforms that can be consumed on-demand by end users. Typically, companies either migrate entirely to the cloud or use a hybrid model of connecting their on-premise infrastructure to a cloud provider and migrate workloads as needed.
Some good initial use cases for the cloud include development and testing environments, data archiving, data mining, and disaster recovery. All these cases will help reduce capital costs and the speed of deployment and consumption makes cloud computing an ideal platform for these use cases.
Most cloud computing services fall into three broad categories: Infrastructure as a Service (IaaS), Platform as a Service (PaaS), and Software as a Service (SaaS).
With IaaS, you rent the IT infrastructure, which includes servers, virtual machines, networks, storage, and operating systems, on a pay-as-you-go basis. With PaaS, you are given access to an on-demand environment that allows you to quickly deploy, test, and develop your application without having to worry about the underlying IT infrastructure. PaaS is ideal for developers who only care about quickly deploying their application and not worrying about the server, compute, or its storage.
SaaS is a way of delivering software applications over the internet on a subscription model. A good example of SaaS is your Gmail email account. You are subscribed to your email by signing up for it and use the email software that is written, maintained, secured, and managed by Google.
GCP's initial release was on October 6, 2011. Since then it has become one of the most used public cloud platforms and is continuing to grow. GCP offers a suite of cloud services that run on the same infrastructure that Google uses to host their end-user products such as Google search, Gmail, and YouTube. This makes it important because Google not only continues to innovate for its customers but also benefits from its own investment into the platform. Google began operations by launching its Google App engine back in 2008. Since then we have seen multiple other services introduced and the list keeps on growing.
While GCP services are many, we can broadly categorize them into four different services. They are compute services, storage services, networking services, and big data services. Apart from these, there are other cloud services such as identity and security management, management tools, data transfer, and machine learning.
GCP offers you a wide variety of computing services that allow you complete flexibility as to how you want to manage your computing assets. Depending on your application and its requirements, you can choose to deploy a traditional custom virtual machine or use Google's App Engine to run the application:
Compute engine
: Allows you to deploy and run high-performance virtual machines in Google data centers. You can deploy either a pre-configured virtual machine or customize the resources as per your requirements.
Apps engine
: Allows you to deploy your application on a fully managed platform which is completely supported by Google. This allows you to simply deploy your application and have it running without you having to worry about the underlying infrastructure.
Kubernetes engine
: This service allows you to run containers on GCP. This means your containerized applications can be deployed on GCP using the Kubernetes engine service without you having to manage the underlying cluster yourself.
Google's Site Reliability Engineers
(
SREs
) constantly monitor the cluster, which relieves you of that responsibility.
Cloud Functions
: This service allows you to run code and respond to events on the fly in a true serverless model. This means allowing code to respond to events is determined by you. This also means you will be billed only if your code runs, making it very cost effective.
The following are the types of storage services:
Cloud storage:
An object storage that can be used for a variety of use cases and is accessible via a REST API. This offering allows geo-redundancy with its multi-regional capability and can be used for both high performance storage requirements to archival storage.
Cloud
SQL:
A fully managed (replicated and backed-up) database service that allows you to easily get started with your MySQL and PostgreSQL databases in the cloud. The offering also comes with a standard API and also built-in migration tools to migrate your current databases to the cloud.
Cloud BigTable
: Cloud BigTable is the database for all your NoSQL database requirements. The service can scale to hundreds of petabytes easily, which makes it suitable for enterprise data analysis. BigTable also integrates easily with other big data tools such as Hadoop.
Cloud Spanner
: Cloud Spanner is a relational database service that aims at providing highly scalable and strongly consistent database service for the cloud. This is a fully managed service that can offer transactional consistency and synchronous replication of databases across multiple geographies.
Cloud Datastore
: Cloud Datastore is another service set apart from Cloud BigTable that is suitable for your key-value pair NoSQL database requirements. The services comes with other features such as sharding and replication.
Persistent Disk
: Persistent Disk is persistent high performance block storage that can be attached to your Google compute engine instance or Google Kubernetes engine. The service allows you to resize storage without any downtime and is offered in both HDD and SSD formats. You can also mount one disk on multiple machine instances allowing multi-reader capability.
