Scheduler Policy File: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
=Internal=
=Internal=


* [[Kubernetes_Concepts#Scheduler_Policy_File|Kubernetes Concepts]]
* [[OpenShift_Concepts#Scheduler_Policy_File|OpenShift Concepts]]


=Overview=
=Overview=
The default scheduler policy file: {{Internal|/etc/origin/master/scheduler.json|/etc/origin/master/scheduler.json}}


=Example=
=Example=

Latest revision as of 01:46, 6 July 2017

Internal

Overview

The default scheduler policy file:

/etc/origin/master/scheduler.json

Example

{
    "kind" : "Policy",
    "version" : "v1",
    "predicates" : [
        {"name" : "PodFitsPorts"},
        {"name" : "PodFitsResources"},
        {"name" : "NoDiskConflict"},
        {"name" : "MatchNodeSelector"},
        {"name" : "HostName"}
    ],
    "priorities" : [
        {"name" : "LeastRequestedPriority", "weight" : 1},
        {"name" : "BalancedResourceAllocation", "weight" : 1},
        {"name" : "ServiceSpreadingPriority", "weight" : 1}
    ]
}