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

marco.cirilli
from marco.cirilli More from this publisher
19.06.2021 Views

Chapter 2 ■ Kubernetes on CoreOS on AWSFigure 2-26. Setting port forwardingInvoke the service endpoint on the local machine browser to display the nginx application output asshown in Figure 2-27.Figure 2-27. Invoking the service in a browser46

Chapter 2 ■ Kubernetes on CoreOS on AWSExit the controller instance as shown in Figure 2-28.Figure 2-28. Exiting CoreOS instanceSummaryIn this chapter we launched an AWS CloudFormation stack for a Kubernetes cluster on CoreOS instances.The procedure we followed was this: First, install kube-aws. Next, set up the cluster parameters, such ascreating a KMS key and setting up an external DNS name. To create the cluster CloudFormation, create anasset directory, initialize the cluster CloudFormation, render contents of the asset directory, customize thecluster, validate the cluster and launch the cluster. After the cluster has been launched, access the clusterand create an nginx application pod cluster.In the next chapter we will install Kubernetes on the Google Cloud platform.47

Chapter 2 ■ Kubernetes on CoreOS on AWS

Exit the controller instance as shown in Figure 2-28.

Figure 2-28. Exiting CoreOS instance

Summary

In this chapter we launched an AWS CloudFormation stack for a Kubernetes cluster on CoreOS instances.

The procedure we followed was this: First, install kube-aws. Next, set up the cluster parameters, such as

creating a KMS key and setting up an external DNS name. To create the cluster CloudFormation, create an

asset directory, initialize the cluster CloudFormation, render contents of the asset directory, customize the

cluster, validate the cluster and launch the cluster. After the cluster has been launched, access the cluster

and create an nginx application pod cluster.

In the next chapter we will install Kubernetes on the Google Cloud platform.

47

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

Saved successfully!

Ooh no, something went wrong!