148422597X Kubernetes Management Design Patterns [Vohra 2017-01-29] {E559F6BB}
Chapter 1 ■ Kubernetes on AWSTo delete a VPC, select the VPC and click Actions ➤ Delete VPC, as shown in Figure 1-11.Figure 1-11. Selecting Actions ➤ Delete VPCIn the confirmation screen that appears, click Yes, Delete. If the VPC is not associated with any instance,the VPC should start to be deleted as shown in Figure 1-12.Figure 1-12. Deleting a VPCIf a VPC is associated with any instance, then it is not deletable and the Yes, Delete button isunavailable, as shown in Figure 1-13.10
Chapter 1 ■ Kubernetes on AWSFigure 1-13. The message for a nondeletable VPCNext, configure AWS on the Amazon Linux instance using the following command:aws configureWhen prompted, specify the AWS Access Key ID and AWS Access Key. Also specify the default regionname (us-east-1) and the default output format (json) as shown in Figure 1-14.Figure 1-14. Configuring AWSStarting the Kubernetes ClusterNow that you have configured AWS, run the following command to install Kubernetes:export KUBERNETES_PROVIDER=aws; wget -q -O - https://get.k8s.io | bashThis command starts the Kubernetes installation process as shown in Figure 1-15.Figure 1-15. Installing Kubernetes11
- Page 1 and 2: KubernetesManagementDesign Patterns
- Page 3 and 4: Kubernetes Management Design Patter
- Page 5 and 6: ■ CONTENTS AT A GLANCE■Part
- Page 7 and 8: ■ CONTENTSSetting Up Cluster Para
- Page 9 and 10: ■ CONTENTS■Chapter ■ 6: Us
- Page 11 and 12: ■ CONTENTSOvercommitting Resou
- Page 13 and 14: ■ CONTENTSInstalling OpenShift
- Page 15 and 16: About the Technical ReviewerMassimo
- Page 17 and 18: ■ INTRODUCTIONpatterns are lan
- Page 19 and 20: ■ INTRODUCTIONIn Chapter 3 we
- Page 21 and 22: CHAPTER 1Kubernetes on AWSKubernete
- Page 23 and 24: Chapter 1 ■ Kubernetes on AWSIn t
- Page 25 and 26: Chapter 1 ■ Kubernetes on AWSUsin
- Page 27: Chapter 1 ■ Kubernetes on AWSClic
- Page 31 and 32: Chapter 1 ■ Kubernetes on AWSFigu
- Page 33 and 34: Chapter 1 ■ Kubernetes on AWSFigu
- Page 35 and 36: Testing the ClusterChapter 1 ■ Ku
- Page 37 and 38: Chapter 1 ■ Kubernetes on AWSFigu
- Page 39 and 40: Chapter 1 ■ Kubernetes on AWSFigu
- Page 41 and 42: CHAPTER 2Kubernetes on CoreOS on AW
- Page 43 and 44: Chapter 2 ■ Kubernetes on CoreOS
- Page 45 and 46: Chapter 2 ■ Kubernetes on CoreOS
- Page 47 and 48: Chapter 2 ■ Kubernetes on CoreOS
- Page 49 and 50: Customizing the ClusterChapter 2
- Page 51 and 52: Chapter 2 ■ Kubernetes on CoreOS
- Page 53 and 54: Chapter 2 ■ Kubernetes on CoreOS
- Page 55 and 56: Chapter 2 ■ Kubernetes on CoreOS
- Page 57 and 58: Chapter 2 ■ Kubernetes on CoreOS
- Page 59 and 60: Chapter 2 ■ Kubernetes on CoreOS
- Page 61 and 62: Chapter 2 ■ Kubernetes on CoreOS
- Page 63 and 64: Chapter 2 ■ Kubernetes on CoreOS
- Page 65 and 66: Chapter 2 ■ Kubernetes on CoreOS
- Page 67 and 68: Chapter 3 ■ Kubernetes on Google
- Page 69 and 70: Chapter 3 ■ Kubernetes on Google
- Page 71 and 72: Chapter 3 ■ Kubernetes on Google
- Page 73 and 74: Chapter 3 ■ Kubernetes on Google
- Page 75 and 76: Chapter 3 ■ Kubernetes on Google
- Page 77 and 78: Chapter 3 ■ Kubernetes on Google
Chapter 1 ■ Kubernetes on AWS
Figure 1-13. The message for a nondeletable VPC
Next, configure AWS on the Amazon Linux instance using the following command:
aws configure
When prompted, specify the AWS Access Key ID and AWS Access Key. Also specify the default region
name (us-east-1) and the default output format (json) as shown in Figure 1-14.
Figure 1-14. Configuring AWS
Starting the Kubernetes Cluster
Now that you have configured AWS, run the following command to install Kubernetes:
export KUBERNETES_PROVIDER=aws; wget -q -O - https://get.k8s.io | bash
This command starts the Kubernetes installation process as shown in Figure 1-15.
Figure 1-15. Installing Kubernetes
11