Scheduler Policy File: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
(Created page with "=Internal= * Kubernetes Concepts =Overview= =Example= <pre> { "kind" : "Policy", "version" : "v1", "predicates" : [ {"na...")
 
 
(3 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=
Line 9: Line 11:
<pre>
<pre>
{
{
"kind" : "Policy",
    "kind" : "Policy",
"version" : "v1",
    "version" : "v1",
"predicates" : [
    "predicates" : [
{"name" : "PodFitsPorts"},
        {"name" : "PodFitsPorts"},
{"name" : "PodFitsResources"},
        {"name" : "PodFitsResources"},
{"name" : "NoDiskConflict"},
        {"name" : "NoDiskConflict"},
{"name" : "MatchNodeSelector"},
        {"name" : "MatchNodeSelector"},
{"name" : "HostName"}
        {"name" : "HostName"}
],
    ],
"priorities" : [
    "priorities" : [
{"name" : "LeastRequestedPriority", "weight" : 1},
        {"name" : "LeastRequestedPriority", "weight" : 1},
{"name" : "BalancedResourceAllocation", "weight" : 1},
        {"name" : "BalancedResourceAllocation", "weight" : 1},
{"name" : "ServiceSpreadingPriority", "weight" : 1}
        {"name" : "ServiceSpreadingPriority", "weight" : 1}
]
    ]
}
}
</pre>
</pre>

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}
    ]
}