AWS CLI
EKS Commands
Elastic Kubernetes Service
4 commands
Commands
List clusters
$ aws eks list-clusters --region us-east-1 --output table
List all EKS clusters in region.
Describe cluster
$ aws eks describe-cluster --name production-cluster --region us-east-1 --query 'cluster.[status,version,endpoint]' --output table
Get detailed cluster information and status.
Update kubeconfig
$ aws eks update-kubeconfig --name production-cluster --region us-east-1 --alias prod-eks
Configure kubectl to access EKS cluster.
Create node group
$ aws eks create-nodegroup --cluster-name production-cluster --nodegroup-name app-nodes --node-role arn:aws:iam::123456789:role/EKSNodeRole --subnets subnet-xxx subnet-yyy --scaling-config minSize=2,maxSize=10,desiredSize=3 --instance-types t3.medium
Create managed node group with autoscaling.