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.

Setting the Environment

Chapter 8 ■ Using Rolling Updates

Create an Amazon EC2 instance based on the Amazon Linux AMI. Obtain the public IP of the instance and

SSH log in to the instance:

ssh -i "docker.pem" ec2-user@54.87.191.230

Create a Kubernetes cluster using an AWS CloudFormation consisting of a single controller and three

worker nodes running CoreOS, as shown in Figure 8-2.

Figure 8-2. CloudFormation EC2 instances

After starting the cluster and setting up an A record for the controller instance IP address in the public

DNS name for the CloudFormation, SSH log in to the controller instance:

ssh -i "kubernetes-coreos.pem" core@52.205.169.82

The controller CoreOS instance is logged in as shown in Figure 8-3.

Figure 8-3. SSH logging into the controller instance

Install kubectl binaries and list the nodes:

./kubectl get nodes

The single controller node and the three worker nodes are listed as shown in Figure 8-4.

173

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

Saved successfully!

Ooh no, something went wrong!