Add Host to PodSpec and add a predicate to make the scheduler work.

This commit is contained in:
Brendan Burns
2014-12-18 14:12:58 -08:00
parent 5bd560de51
commit 2e17193161
9 changed files with 87 additions and 0 deletions

View File

@@ -37,6 +37,8 @@ func defaultPredicates() util.StringSet {
factory.RegisterFitPredicate("NoDiskConflict", algorithm.NoDiskConflict),
// Fit is determined by node selector query
factory.RegisterFitPredicate("MatchNodeSelector", algorithm.NewSelectorMatchPredicate(factory.MinionLister)),
// Fit is determined by the presence of the Host parameter and a string match
factory.RegisterFitPredicate("HostName", algorithm.PodFitsHost),
)
}