Create First Cluster
Last updated
Last updated
Now that AWS is configured we are ready to create our first Kubernetes cluster.
Cost note By running the next command you’ll get charged for 3 instances (1 x m3.medium and 2 x t2.medium, the cost should be less than $1 for an hour). But you can use also the free tier.
Run the following command and provide your desired zone.
The Kubernetes cluster is now starting. It should be ready in a few minutes. Kops has also set your kubectl
context to be kubernauts.k8s.local
.
The following Asciicast shows the cluster being created.
Verify if your master and worker nodes are running.
Retrieve the cluster info.
Use the following link to open the AWS Console at the IAM service and the kops
user summary page.
Under the Security credentials tab set a password for the kops
user. The Console login link for the kops
user will then be created. Use it to login as the kops
user with the password you just set.
Once you have logged in choose the region you created the cluster in and find the public ip address of the master EC2 instance. You can now ssh into the master.
And verify your kubectl version:
You’re now running Kubernetes 1.6.2 cluster with a single master and two worker nodes. The master is in an Auto Scaling group and the worker nodes are in a separate group.
NEXT PREVIOUS