Container Service for Kubernetes (ACK) provides information about the nodes in your ACK cluster, including the node list, the resource request of each node, and the resource utilization of each node. This topic describes how to view the node list, the resource request of a node, and the resource utilization of a node in an ACK cluster.
Prerequisites
An ACK cluster is created. Fore more information, see Create an ACK managed cluster.Use the CLI to view the node list
Note Before you use the CLI to view the node list of your cluster, you must connect to the cluster by using kubectl. For more information, see Connect to ACK clusters by using kubectl.
After you use kubectl to connect to your cluster and run the following command to view the node list:
kubectl get nodes
Expected output:
kubectl get nodes
NAME STATUS AGE VERSION
iz2ze2n6ep53tch701y**** Ready 19m v1.6.1-2+ed9e3d33a07093
iz2zeafr762wibijx39**** Ready 7m v1.6.1-2+ed9e3d33a07093
iz2zeafr762wibijx39**** Ready 7m v1.6.1-2+ed9e3d33a07093
iz2zef4dnn9nos8elyr**** Ready 14m v1.6.1-2+ed9e3d33a07093
iz2zeitvvo8enoreufs**** Ready 11m v1.6.1-2+ed9e3d33a07093
Use the ACK console to view the node list
- Log on to the ACK console and click Clusters in the left-side navigation pane.
- On the Clusters page, click the name of a cluster and choose in the left-side navigation pane.
- View node list, the resource request of a node, and the resource utilization of a node.
- On the Nodes page, you can view the node list and the node name, IP address, Elastic Compute Service (ECS) instance ID, and node pool of each node.
- Find the node that you want to view and choose Actions column. On the details page, you can view the CPU request, CPU utilization, memory request, and memory utilization. The preceding information is calculated based on the following formulas:
- CPU request = sum(Amount of CPU resources requested by each pod on the node)/Total amount of CPU resources on the node
- CPU utilization = sum(Amount of CPU resources used by each pod on the node)/Total amount of CPU resources on the node
- Memory request = sum(Amount of memory resources requested by each pod on the node)/Total amount of memory resources on the node
- Memory utilization = sum(Amount of memory resources used by each pod on the node)/Total amount of memory resources on the node
Note- You can adjust the workload distribution among the nodes in your cluster based on resource utilization. Fore more information, see Set node schedulability.
- If both the resource request and resource utilization of a node are 100%, the system does not schedule new pods to the node.
in the