2025-03-14 21:59:59 -06:00
|
|
|
# eksctl
|
|
|
|
|
|
|
|
|
|
> The official CLI for Amazon EKS.
|
2026-02-18 06:55:01 -07:00
|
|
|
> More information: <https://docs.aws.amazon.com/eks/latest/eksctl/what-is-eksctl.html>.
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Create a basic cluster:
|
|
|
|
|
|
|
|
|
|
`eksctl create cluster`
|
|
|
|
|
|
|
|
|
|
- List the details about a cluster or all of the clusters:
|
|
|
|
|
|
|
|
|
|
`eksctl get cluster --name={{name}} --region={{region}}`
|
|
|
|
|
|
|
|
|
|
- Create a cluster passing all configuration information in a file:
|
|
|
|
|
|
|
|
|
|
`eksctl create cluster --config-file={{path/to/file}}`
|
|
|
|
|
|
|
|
|
|
- Create a cluster using a configuration file and skip creating nodegroups until later:
|
|
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
`eksctl create cluster --config-file={{path/to/file}} --without-nodegroup`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Delete a cluster:
|
|
|
|
|
|
|
|
|
|
`eksctl delete cluster --name={{name}} --region={{region}}`
|
|
|
|
|
|
|
|
|
|
- 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}}`
|
|
|
|
|
|
|
|
|
|
- Create a cluster and prevent storing cluster credentials locally:
|
|
|
|
|
|
|
|
|
|
`eksctl create cluster --name={{name}} --nodes={{4}} --write-kubeconfig=false`
|
|
|
|
|
|
|
|
|
|
- Create a cluster and let `eksctl` manage cluster credentials under the `~/.kube/eksctl/clusters` directory:
|
|
|
|
|
|
|
|
|
|
`eksctl create cluster --name={{name}} --nodes={{4}} --auto-kubeconfig`
|