Creating a Kubernetes cluster using the AWS web console

Creating an AWS Kubernetes cluster

If you don't already have a Kubernetes cluster, the steps below will help you create one. There are two ways in which you can

In this case, you also need to add a Node Group that contains the actual EC2 machines onto which Kubernetes will “physically” run.

Creating the IAM Service Role

The first thing you have to do is create the IAM Service Role for managing the cluster, with the following 2 policies:

  • AmazonEKSClusterPolicy

  • AmazonEKSServicePolicy

circle-info

Read more about creating an IAM Service Role on the AWS websitearrow-up-right.

Create the Node IAM role

circle-info

Detailed instructions on how to do this are available on the AWS websitearrow-up-right.

After successfully creating the node IAM role, add the following policies:

  • AmazonEKSWorkerNodePolicy

  • AmazonEC2ContainerRegistryReadOnly

  • AmazonEKS_CNI_Policy

Enable public IPs for Nodes

It is necessary for nodes to have public IPs auto-assigned.

circle-info

Step-by-step instructions are available on the AWS documentation platformarrow-up-right.

Alternatively, you can follow these instructions:

1. Go to the cluster Configuration screen.

2. Go to the Networking tab.

3. For each subnet, make sure the Auto-assign public IPv4 address is set to Yes. This will be required for the cluster nodes to be publicly accessible.

circle-info

Make sure to have the MapPublicIpOnLaunch setting to true for the subnets.

Creating an Amazon EKS cluster

It's time to create an Amazon EKS cluster. You can follow the instructions on the AWS websitearrow-up-right to do this.

circle-info

If this is your first time creating an EKS cluster, it is recommended that you follow one of the Getting started with Amazon EKSarrow-up-right guides instead.

1. Open the Cluster Service Role drop-down menu and select the Service Role created earlier.

2. You can now select the VPC and subnets.

3. Next, select logging options.

4. Lastly, review the info and create the cluster.

Add Node Group to EKS

1. Go to your cluster and click the Add Node Group button.

2. Choose a name for your node and select the previously created IAM Role

3. Select the number of desired nodes and the instance types.

4. Select the subnets for the Node Group.

5. Finally, review your selection and create the node group.

After 10-12 minutes, all should be good. For this demo cluster, we chose to use a 2-node configuration.

Retrieving the necessary credentials

1. Go to EKS and select Clusters.

2. Select your cluster, go to the Configuration screen and select Details. You will need some information from this page when establishing the connection.

Last updated

Was this helpful?