Launching the cluster using kube-aws

Before we start to create the cluster configuration, we need to create a working directory, as there are going to be a few artifacts created. Let's create a folder called kube-aws-cluster and change to it:

$ mkdir kube-aws-cluster$ cd kube-aws-cluster

Now we are in our working directory we can create our cluster configuration file. To do this run the following command, making sure to replace the values with the information you gathered in the previous section:

If you are not using a Route 53-hosted domain, remove the --hosted-zone-id flag.
kube-aws init \  --cluster-name=kube-aws-cluster \  --external-dns-name=kube.mckendrick.io \  --hosted-zone-id=Z2WSA56Y5ICKTT \  --region=eu-west-1 \ --availability-zone=eu-west-1a ...

Get Kubernetes for Serverless Applications now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.