← 返回命令列表

Linux command

eksctl 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Create EKS cluster

eksctl create cluster --name [cluster_name]

Create with node

eksctl create cluster --name [name] --nodes [3] --node-type [t3.medium]

List clusters

eksctl get clusters

Delete cluster

eksctl delete cluster --name [cluster_name]

Create nodegroup

eksctl create nodegroup --cluster [name] --name [ng-name]

Scale nodegroup

eksctl scale nodegroup --cluster [name] --name [ng-name] --nodes [5]

Update kubeconfig

eksctl utils write-kubeconfig --cluster [name]

说明

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.

参数

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.
delete cluster --name _NAME_
Delete cluster.
get clusters
List clusters.
--help
Display help information.

FAQ

What is the eksctl command used for?

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.

How do I run a basic eksctl example?

Run `eksctl create cluster --name [cluster_name]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does create cluster --name _NAME_ do in eksctl?

Create new EKS cluster.