List AWS Node Pools
List node pools for a cluster
Use this command to list the node pools of a given cluster. This returns specific properties of each node pool so that you can see the name of the MachineDeployments.
To list all node pools for a managed cluster, run:
dkp get nodepools --cluster-name=${CLUSTER_NAME} --kubeconfig=${CLUSTER_NAME}.conf
The expected output is similar to the following example, indicating the desired size of the node pool, the number of replicas ready in the node pool, and the Kubernetes version those nodes are running:
NODEPOOL DESIRED READY KUBERNETES VERSION
example 3 3 v1.24.6
aws-example-md-0 4 4 v1.24.6
Attached Clusters
Before running the command to list the attached clusters, ensure that you know the following:
KUBECONFIG for the management cluster - In order to find the KUBECONFIG for a cluster from the UI, refer to this section in the documentation: Access a Managed or Attached Cluster
The CLUSTER_NAME of the attached cluster
The NAMESPACE of the attached cluster
To list all node pools for an attached cluster, run:
dkp get nodepools --cluster-name=${ATTACHED_CLUSTER_NAME} --kubeconfig=${CLUSTER_NAME}.conf -n ${ATTACHED_CLUSTER_NAMESPACE}
The expected output is similar to below:
NODEPOOL DESIRED READY KUBERNETES VERSION
aws-attached-md-0 4 4 v1.24.6