Let's first export our cluster name to the environment variable. This will be useful, because we are going to refer to the cluster's name often. Execute the following command to export the cluster name:
$ export NAME=my-rest-cluster.k8s.local
The kops create cluster is the command we are going to use to create our cluster. Note that this will not affect our Amazon EC2 instances yet. The outcome of the command will be just a local cluster template which we can review and edit before rolling out real, physical changes on the AWS.
The syntax of the command is very simple:
$ kops create cluster [options]
The command takes a lot of options; you can always find the up-to-date description on GitHub at https://github.com/kubernetes/kops/blob/master/docs/cli/kops_create_cluster.md ...