Update user guide and scheduler documentation to describe node affinity.

Register image priority locality function, which the original PR that introduced
it forgot to do. Change zone and region labels to beta.
This commit is contained in:
David Oppenheimer
2016-02-14 16:56:40 -08:00
parent 5fe856c749
commit 053f1c6008
6 changed files with 107 additions and 15 deletions

View File

@@ -76,6 +76,10 @@ func init() {
// PodFitsPorts has been replaced by PodFitsHostPorts for better user understanding.
// For backwards compatibility with 1.0, PodFitsPorts is regitered as well.
factory.RegisterFitPredicate("PodFitsPorts", predicates.PodFitsHostPorts)
// ImageLocalityPriority prioritizes nodes based on locality of images requested by a pod. Nodes with larger size
// of already-installed packages required by the pod will be preferred over nodes with no already-installed
// packages required by the pod or a small total size of already-installed packages required by the pod.
factory.RegisterPriorityFunction("ImageLocalityPriority", priorities.ImageLocalityPriority, 1)
}
func defaultPredicates() sets.String {