Skip to content

AWS EKS Installation

Note

The Lamini installer is only available when self-managing Lamini Platform. Contact us to learn more.

Summary

This installation covers the steps involved in setting up an AWS EKS cluster, configuring NFS storage, creating a node group, installing the AWS CLI, accessing the EKS cluster, and finally installing the Lamini platform on the EKS cluster.

Create EKS Cluster

  • Search for EKS on AWS console
  • Create a new cluster
  • Configure cluster details (name, IAM role, networking)
  • Create the cluster

Set Up NFS

  • Create AWS S3 File Gateway
  • Configure gateway settings (name, timezone, instance key pair)
  • Launch gateway instance
  • Activate and configure gateway
  • Create file share and note the NFS IP and path

Create Node Group

  • Select the created EKS cluster
  • Add a node group
  • Create an instance role with necessary policies
  • Configure node group details (name, role, instance type, disk size)
  • Create the node group and note the node names

Install AWS CLI

  • Follow AWS instructions to install the AWS CLI
  • Verify installation

Access EKS Cluster

  • Create AWS Access Key ID and Secret Access Key
  • Configure AWS credentials
  • Update kubeconfig for the EKS cluster

Install Lamini Installer

  • Follow the "Installing Lamini Platform on Kubernetes" guide
  • Complete Lamini installation on EKS

Create EKS Cluster

  • Type EKS in the AWS search bar of the AWS landing page. Select the EKS.

screenshot-20241016-125951

  • Click Add Cluster and then Create, to create a cluster.

screenshot-20241016-124632

  • Enter a cluster name.

screenshot-20241016-124818

  • Create an IAM role for EKS.

screenshot-20241016-124818

  • Select the EKS service and check the EKS - Cluster

screenshot-20241016-125059

  • Enter the role name.

screenshot-20241016-125246

  • Select networking and specify the default security groups.

screenshot-20241016-125510

  • Create the EKS cluster.

screenshot-20241016-125623

  • It will show the creating status.

screenshot-20241016-125721

Set Up NFS

  • Create AWS S3 File Gateway. Type Storage Gateway in the search bar of AWS Console.

screenshot-20241016-132005

  • Click on Create gateway.

screenshot-20241016-132157

  • Enter gateway name and timezone.

screenshot-20241016-132349

  • Select EC2 as platform option and create the instance key pair.

screenshot-20241016-132636

  • Enter the key pair name and create the key pair. Download the pem file to be used for accessing the instance for deployment later.

screenshot-20241016-132724

  • Launch the instance.

screenshot-20241016-132934

  • Connect to AWS - select the IP address connection option and publicly accessible endpoint option.

screenshot-20241016-133202

  • Activate gateway.

screenshot-20241016-133259

  • Configure after activating the gateway.

screenshot-20241016-133541

  • Create file share.

screenshot-20241016-133627

  • Select the gateway that just created, set NFS protocol, and then create the S3 bucket.

screenshot-20241016-133734

screenshot-20241016-133755

  • Select the S3 that was just created.

screenshot-20241016-133823

  • Create the file share.

screenshot-20241016-133849

  • Note down the NFS IP and path that will be used in the NFS setup for Lamini installation.

screenshot-20241016-134042

Create Node Group

  • Select the EKS cluster that was just created.

screenshot-20241016-140806

  • Select the Compute.

screenshot-20241016-140901

  • Select Add Node Group.

screenshot-20241016-140935

  • Create an instance role with policy.

screenshot-20241016-142207

  • Select EC2.

screenshot-20241016-141329

  • Ensure to select the following policies: AmazonEC2ContainerRegistryReadOnly AmazonEKSWorkerNodePolicy AmazonEKS_CNI_Policy

screenshot-20241016-141652

screenshot-20241016-141712

  • Enter a role name and create the role.

screenshot-20241016-141954

screenshot-20241016-141826

  • Enter the node group name and the role that was created.

screenshot-20241016-142247

  • Set Amazon Linux 2 GPU Enabled AMI type, select the desired instance type with GPU, typically the G and P types. Set disk size to at least 100 G.

screenshot-20241016-142340

  • Specify the desired node size.

screenshot-20241016-142444

  • Create the node group.

screenshot-20241016-142520

  • Once the node group has been created, note down the node names that will be used in the lamini installer configuration.

screenshot-20241016-144133

Install AWS CLI

aws --version

Access EKS Cluster

  • Create and get the AWS Access Key ID and AWS Secret Access Key.

screenshot-20241016-145511

screenshot-20241016-145833

screenshot-20241016-145852

screenshot-20241016-150135

  • Configure AWS credential.
aws configure

screenshot-20241016-150214

aws eks update-kubeconfig --name <eks-cluster-name>

screenshot-20241016-150748

Install Lamini Installer

  • Follow the Installing Lamini Platform on Kubernetes section in Kube installer README.md to complete the Lamini installation on EKS.