2 - Amazon EKS


Objectives

Create (or give an existing) user appropriate permissions to create an EKS cluster.

Create an access key and secret key to access Amazon Web Services (AWS) resources from Rancher.

Using the AWS account, create your Amazon Elastic Container Service for Kubernetes (EKS) cluster in Rancher.

Give Appropriate Permissions

Make sure that the account you will be using to create the EKS cluster has the appropriate permissions. Referring to the official EKS documentation for details.

Create Access Key and Secret Key

Use AWS to create an access key and client secret.

  • In the AWS Console, go to the IAM service.

  • Select Users.

  • Find the user you wish to create the EKS cluster with. Select the user.

  • Click Security Credentials.

  • Click Create access key.

  • Record the Access key ID and Secret access key. You will need to use these in Rancher to create your EKS cluster.

Create the EKS Cluster

Use Rancher to set up and configure your Kubernetes cluster.

  • From the Clusters page, click Add Cluster.

  • Choose Amazon EKS.

  • Enter a Cluster Name.

Use Member Roles to configure user authorization for the cluster.

  • Click Add Member to add users that can access the cluster.
  • Use the Role drop-down to set permissions for each user.
  • Enter your Access Key.

  • Enter your Secret Key

  • Click Next: Authenticate & configure nodes.

  • Specify any additional options (such as instance type or minimum and maximum number of nodes). Then click Create.

Result:

  • Your cluster is created and assigned a state of Provisioning. Rancher is standing up your cluster.
  • You can access your cluster after its state is updated to Active.
  • Active clusters are assigned two Projects, Default (containing the namespace default) and System (containing the namespaces cattle-system,ingress-nginx,kube-public and kube-system, if present).