LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

eksctl

AWS EKS cluster management CLI

TLDR

Create EKS cluster
$ eksctl create cluster --name [cluster_name]
copy
Create with node configuration
$ eksctl create cluster --name [name] --nodes [3] --node-type [t3.medium]
copy
List clusters
$ eksctl get clusters
copy
Delete cluster
$ eksctl delete cluster --name [cluster_name]
copy
Create nodegroup
$ eksctl create nodegroup --cluster [name] --name [ng-name]
copy
Scale nodegroup
$ eksctl scale nodegroup --cluster [name] --name [ng-name] --nodes [5]
copy
Update kubeconfig
$ eksctl utils write-kubeconfig --cluster [name]
copy
Create a cluster from a config file
$ eksctl create cluster -f [cluster.yaml]
copy
Upgrade the control plane to a new Kubernetes version
$ eksctl upgrade cluster --name [name] --version [1.31] --approve
copy

SYNOPSIS

eksctl command [options]

DESCRIPTION

eksctl is the official CLI for Amazon EKS (Elastic Kubernetes Service). It simplifies creating, managing, and deleting EKS clusters and their associated resources.The tool handles the complex AWS infrastructure setup including VPCs, subnets, security groups, and IAM roles. Clusters can be defined declaratively with YAML configurations.eksctl supports advanced features like managed node groups, Fargate profiles, and cluster upgrades.

PARAMETERS

COMMAND

Operation: create, get, delete, scale, upgrade, etc.
create cluster --name NAME
Create new EKS cluster.
--nodes N
Number of worker nodes.
--node-type TYPE
EC2 instance type for nodes.
--region REGION
AWS region.
-f, --config-file FILE
Declarative YAML cluster configuration; most flags have an equivalent field.
--dry-run
Print the config file eksctl would apply instead of creating anything.
delete cluster --name NAME
Delete cluster.
get clusters
List clusters.
--help
Display help information.

INSTALL

sudo pacman -S eksctl
copy
sudo zypper install eksctl
copy
brew install eksctl
copy
nix profile install nixpkgs#eksctl
copy

CAVEATS

AWS credentials required. Cluster creation takes time. Incurs AWS charges. Some operations require specific IAM permissions.

HISTORY

eksctl was created by Weaveworks in partnership with AWS, released in 2018 to simplify EKS cluster management. It became the official CLI tool for EKS. After Weaveworks wound down in 2024, the project moved to the community-run eksctl-io organization, where it continues to be maintained.

SEE ALSO

kubectl(1), aws(1), helm(1)

RESOURCES

Copied to clipboard
Kai