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 1 ■ Kubernetes on AWS

Figure 1-26. Creating a pod cluster for nginx

Configuring the Cluster

The default configuration settings used to start a new cluster are specified in the cluster/aws/configdefault.sh

file. The default configuration includes settings for AWS zone, number of nodes, master size,

node size, AWS S3 region, AWS S3 Bucket, and instance prefix.

export KUBE_AWS_ZONE=eu-west-1c

export NUM_NODES=3

export MASTER_SIZE=m3.medium

export NODE_SIZE=m3.medium

export AWS_S3_REGION=eu-west-1

export AWS_S3_BUCKET=mycompany-kubernetes-artifacts

export INSTANCE_PREFIX=k8s

The config-default.sh file may be opened in a vi editor:

sudo vi /home/ec2-user/kubernetes/cluster/aws/config-default.sh

The configuration settings are listed as shown in Figure 1-27.

18

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

Saved successfully!

Ooh no, something went wrong!