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...")
 
Line 9: Line 9:
<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>

Revision as of 01:25, 10 May 2017

Internal

Overview

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