19.06.2021 Views

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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 2 ■ Kubernetes on CoreOS on AWS

AWS

CloudFormation

Master Node

(CoreOS)

Worker Node

(CoreOS)

kube-aws

Launch

Configuration

Worker Node

(CoreOS)

Auto Scaling

Group

Worker Node

(CoreOS)

Figure 2-1. AWS CloudFormation for a Kubernetes cluster

Overview

AWS CloudFormation provisions a collection of AWS resources based on a template, which defines the

resources and the dependencies. In this chapter we shall deploy an AWS CloudFormation for a cluster of

CoreOS instances running Kubernetes. We shall use an AWS Launch Configuration and a Scaling Group for

automatically launching and scaling the CloudFormation. The kube-aws CloudFormation generator CLI tool

is used to create the CloudFormation stack from a template. The stages we’ll explore are as follows:

Setting the Environment

Configuring AWS Credentials

Installing kube-aws

Setting Up Cluster Parameters

Creating a KMS Key

Setting Up an External DNS Name

Creating the Cluster CloudFormation

Creating an Asset Directory

Initializing the Cluster CloudFormation

Rendering Contents of the Asset Directory

Customizing the Cluster

24

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

Saved successfully!

Ooh no, something went wrong!