Some of the resources on the node need to run some necessary Kubernetes system components and resources to make the node as part of your cluster. Therefore, the total number of node resources and the number of assignable node resources in Kubernetes are different. The larger the node specifications, the more the containers deployed on the node. Therefore, Kubernetes needs to reserve more resources.
To ensure node stability, CCE cluster nodes reserve some resources for Kubernetes components (such as kubelet, kube-proxy, and docker) based on node specifications.
CCE calculates the resources that can be allocated to user nodes as follows:
Allocatable = Capacity - Reserved - Eviction Threshold
That is, Configurable amount on the node = Total amount – Reserved amount – Eviction threshold.
In the preceding information, total_mem indicates the total memory and reserved_value indicates the reserved memory.
In the preceding information, total_cpu indicates the total CPU, and reserved_value indicates the reserved CPU.