Amazon Web Services (AWS) Elastic Kubernetes Service (EKS) - List Node Groups using the AWS CLI
by
Jeremy Canfield |
Updated: October 23 2023
| Amazon Web Services (AWS) Elastic Kubernetes Service (EKS) articles
The aws eks list-clusters command can be used to list your Elastic Kubernetes Service (EKS).
~]$ aws eks list-clusters
{
"clusters": [
"my-cluster"
]
}
And then the aws eks list-nodegroups command can be used to list the Node Groups.
~]$ aws eks list-nodegroups --cluster-name my-cluster
{
"nodegroups": [
"my-node-group"
]
}
And then the aws eks describe-nodegroup command can be used to show more details about a node group.
~]$ aws eks describe-nodegroup --cluster my-cluster --nodegroup-name my-node-group
{
"nodegroup": {
"nodegroupName": "my-node-group",
"nodegroupArn": "arn:aws:eks:us-east-1:123456789012:nodegroup/my-cluster/my-node-group/64c5af1a-cdfa-3633-9f1d-042ef5fa8676",
"clusterName": "my-cluster",
"version": "1.27",
"releaseVersion": "1.27.5-20231002",
"createdAt": "2023-10-23T15:24:15.391000-05:00",
"modifiedAt": "2023-10-23T15:24:15.391000-05:00",
"status": "CREATING",
"capacityType": "ON_DEMAND",
"scalingConfig": {
"minSize": 1,
"maxSize": 1,
"desiredSize": 1
},
"instanceTypes": [
"t3.small"
],
"subnets": [
"subnet-11122233344455566",
"subnet-22233344455566677",
"subnet-33344455566677788"
],
"amiType": "AL2_x86_64",
"nodeRole": "arn:aws:iam::123456789012:role/eks/my-role",
"diskSize": 20,
"health": {
"issues": []
},
"updateConfig": {
"maxUnavailable": 1
},
"tags": {
"Environment": "Development"
}
}
}
Did you find this article helpful?
If so, consider buying me a coffee over at