Junior — Middle
How can the amount of resources allocated to a node in Kubernetes be determined?
sobes.tech AI
Answer from AI
To determine the amount of resources allocated to a node in Kubernetes, you can use the command kubectl describe node <node-name>. The output will include information about allocated memory and CPU, as well as current usage.
Example:
kubectl describe node node-1
In the Capacity and Allocatable sections, the total and available resources are indicated, respectively.
You can also obtain this information via the Kubernetes API or use metrics from monitoring systems (e.g., Prometheus) for more detailed analysis.