← 返回命令列表

Linux command

aws-eks 命令

文本

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

常用示例

Create a new EKS cluster

aws eks create-cluster --name [my-cluster] --role-arn [arn:aws:iam::account:role/eks-role] --resources-vpc-config subnetIds=[subnet-1],[subnet-2],securityGroupIds=[sg-123]

List all EKS clusters

aws eks list-clusters

Describe a cluster

aws eks describe-cluster --name [my-cluster]

Update kubeconfig

aws eks update-kubeconfig --name [my-cluster]

Create a managed node group

aws eks create-nodegroup --cluster-name [my-cluster] --nodegroup-name [my-nodes] --node-role [arn:aws:iam::account:role/node-role] --subnets [subnet-1] [subnet-2] --instance-types [t3.medium]

List add-ons

aws eks list-addons --cluster-name [my-cluster]

Delete a cluster

aws eks delete-cluster --name [my-cluster]

说明

aws eks is the AWS CLI interface for Amazon Elastic Kubernetes Service (EKS), a managed Kubernetes service. EKS runs the Kubernetes control plane across multiple AWS availability zones, automatically detecting and replacing unhealthy control plane nodes. EKS integrates with AWS services for networking (VPC), security (IAM), load balancing (ELB), and storage (EBS/EFS). It supports managed node groups, self-managed nodes, and AWS Fargate for serverless containers.

FAQ

What is the aws-eks command used for?

aws eks is the AWS CLI interface for Amazon Elastic Kubernetes Service (EKS), a managed Kubernetes service. EKS runs the Kubernetes control plane across multiple AWS availability zones, automatically detecting and replacing unhealthy control plane nodes. EKS integrates with AWS services for networking (VPC), security (IAM), load balancing (ELB), and storage (EBS/EFS). It supports managed node groups, self-managed nodes, and AWS Fargate for serverless containers.

How do I run a basic aws-eks example?

Run `aws eks create-cluster --name [my-cluster] --role-arn [arn:aws:iam::account:role/eks-role] --resources-vpc-config subnetIds=[subnet-1],[subnet-2],securityGroupIds=[sg-123]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

Where can I find more aws-eks examples?

This page includes 7 examples for aws-eks, plus related commands for nearby Linux tasks.