Scheduler should use node Allocatable
instead of Capacity
#18848
Closed
Description
We added a new field to NodeStatus
: Allocatable
. Allocatable represents the schedulable resources on a node, while capacity is the total resources on a node (including resources claimed by non-k8s workloads, such as kernel usage, container runtime, and other native processes). More details here: https://github.com/kubernetes/kubernetes/blob/master/docs/proposals/node-allocatable.md
Allocatable
defaults to Capacity
when not set, so this change will be backwards compatible with Kubelets that don't set Allocatable
.
/cc @dchen1107 @davidopp