mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-09 13:12:20 +00:00
Refactor schedulers, remove schedulers, use generic scheduler.
This commit is contained in:
@@ -62,7 +62,11 @@ func (factory *ConfigFactory) Create() *scheduler.Config {
|
||||
}
|
||||
|
||||
r := rand.New(rand.NewSource(time.Now().UnixNano()))
|
||||
algo := algorithm.NewRandomFitScheduler(
|
||||
algo := algorithm.NewGenericScheduler(
|
||||
// Fit is defined based on the absence of port conflicts.
|
||||
[]algorithm.FitPredicate{algorithm.PodFitsPorts},
|
||||
// All nodes where things fit are equally likely (Random)
|
||||
algorithm.EqualPriority,
|
||||
&storeToPodLister{podCache}, r)
|
||||
|
||||
return &scheduler.Config{
|
||||
|
Reference in New Issue
Block a user