Creating your cluster

We'll go ahead and use the .k8s.local settings mentioned previously to simplify the DNS setup of the cluster. If you'd prefer, you can also use the name and state flags available within kops to avoid using environment variables. Let's prepare the local environment first:

$ export NAME=gswk8s3.k8s.local$ export KOPS_STATE_STORE=s3://gsw-k8s-3-state-store$ aws s3api create-bucket --bucket gsw-k8s-3-state-store --region us-east-1{  "Location": "/gsw-k8s-3-state-store"}$

Let's spin up our cluster in Ohio, and verify that we can see that region first:

$ aws ec2 describe-availability-zones --region us-east-2{  "AvailabilityZones": [  {  "State": "available",   "ZoneName": "us-east-2a",   "Messages": [],  "RegionName": "us-east-2" ...

Get Getting Started with Kubernetes - Third Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.