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

Validating the CloudFormation Stack

After modifying any file (stack-template.json or the user data files), the CloudFormation stack must be

validated:

kube-aws validate

As indicated by the output in Figure 2-10, the user data and the stack template are valid.

Figure 2-10. Validating the CloudFormation stack

Launching the Cluster CloudFormation

Launch the CloudFormation stack with the following command:

kube-aws up

It could take a few minutes for the cluster to be launched and for the Kubernetes controller and

workers to become available. The preceding command does not complete until the cluster has launched.

The controller IP is listed when the cluster is lauched. The cluster status may be found with the following

command:

kube-aws status

As the output from the preceding commands in Figure 2-11 indicates, the cluster is launched.

34

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

Saved successfully!

Ooh no, something went wrong!