LinuxCommandLibrary

eksctl

The official CLI for Amazon EKS.

TLDR

Create a basic cluster

$ eksctl create cluster
copy


List the details about a cluster or all of the clusters
$ eksctl get cluster --name=[name] --region=[region]
copy


Create a cluster passing all configuration information in a file
$ eksctl create cluster --config-file=[path/to/file]
copy


Create a cluster using a configuration file and skip creating nodegroups until later
$ eksctl create cluster --config-file=<path> --without-nodegroup
copy


Delete a cluster
$ eksctl delete cluster --name=[name] --region=[region]
copy


Create cluster and write cluster credentials to a file other than the default
$ eksctl create cluster --name=[name] --nodes=[4] --kubeconfig=[path/to/config.yaml]
copy


Create a cluster and prevent storing cluster credentials locally
$ eksctl create cluster --name=[name] --nodes=[4] --write-kubeconfig=false
copy


Create a cluster and let eksctl manage cluster credentials under the ~/.kube/eksctl/clusters directory
$ eksctl create cluster --name=[name] --nodes=[4] --auto-kubeconfig
copy

Copied to clipboard