19.06.2021 Views

148422597X Kubernetes Management Design Patterns [Vohra 2017-01-29] {E559F6BB}

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

CHAPTER 3

Kubernetes on Google Cloud

Platform

Google Cloud Platform is a public cloud computing platform that includes database services and

infrastructure on which applications and websites may be hosted on managed virtual machines. This

integrated PaaS/IaaS is a collection of services that may be categorized into Compute, Storage and

Databases, Networking, Big Data, and Machine Learning, to list a few.

Problem

While Docker is pre-installed on CoreOS, Kubernetes is not. As discussed in Chapter 2 Kubernetes has to be

installed on CoreOS.

Solution

The service category of most interest for using Kubernetes is Compute, which includes a Compute Engine

for running large-scale workloads on virtual machines hosted on Google’s infrastructure, an App Engine

for developing scalable web and mobile apps, and a Container Engine for running Docker containers on

Kubernetes on Google’s infrastructure. Google Container Engine is a Kubernetes based cluster manager for

Docker containers and thus does not require installation of Kubernetes. We shall use the Google Container

Engine, a Google managed service for Kubernetes. Google Container Engine has Docker preinstalled and

provides built-in support for Google Cloud Platform, which as stated is both an Infrastructure as a Service

(IaaS) and a Platform as a Service (PaaS). Google Cloud Platform is an alternative to Amazon Web Services

(AWS), which is the cloud provider we use in most other chapters.

Overview

The design patterns discussed in subsequent chapters may be used on Google Cloud Platform as well,

though the configuration could be different. In this chapter we will use the Google Compute Engine to

create a virtual machine instance, install Kubernetes on it using binaries, and subsequently create a sample

Kubernetes application and service. We shall also discuss using the Google Container Engine, which is

Kubernetes based cluster manager for Docker containers. The steps we’ll take are as follows:

Setting the Environment

Creating a Project on Google Cloud Platform

Enabling Permissions

© Deepak Vohra 2017

D. Vohra, Kubernetes Management Design Patterns, DOI 10.1007/978-1-4842-2598-1_3

49

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!