Scheduling Policies

    You can set a scheduling policy by running or kube-scheduler --policy-configmap <ConfigMap> and using the Policy type.

    The following predicates implement filtering:

    The following priorities implement scoring:

    • SelectorSpreadPriority: Spreads Pods across hosts, considering Pods that belong to the same , StatefulSetManages deployment and scaling of a set of Pods, with durable storage and persistent identifiers for each Pod. or .

    • InterPodAffinityPriority: Implements preferred inter pod affininity and antiaffinity.

    • LeastRequestedPriority: Favors nodes with fewer requested resources. In other words, the more Pods that are placed on a Node, and the more resources those Pods use, the lower the ranking this policy will give.

    • BalancedResourceAllocation: Favors nodes with balanced resource usage.

    • NodePreferAvoidPodsPriority: Prioritizes nodes according to the node annotation scheduler.alpha.kubernetes.io/preferAvoidPods. You can use this to hint that two different Pods shouldn’t run on the same Node.

    • NodeAffinityPriority: Prioritizes nodes according to node affinity scheduling preferences indicated in PreferredDuringSchedulingIgnoredDuringExecution. You can read more about this in .

    • TaintTolerationPriority: Prepares the priority list for all the nodes, based on the number of intolerable taints on the node. This policy adjusts a node’s rank taking that list into account.

    • ImageLocalityPriority: Favors nodes that already have the container imagesStored instance of a container that holds a set of software needed to run an application. for that Pod cached locally.

    • ServiceSpreadingPriority: For a given Service, this policy aims to make sure that the Pods for the Service run on different nodes. It favours scheduling onto nodes that don’t have Pods for the service already assigned there. The overall outcome is that the Service becomes more resilient to a single Node failure.

    • : Gives an equal weight of one to all nodes.

    • EvenPodsSpreadPriority: Implements preferred .

    Thanks for the feedback. If you have a specific, answerable question about how to use Kubernetes, ask it on Stack Overflow. Open an issue in the GitHub repo if you want to or suggest an improvement.