Scheduler Policy File: Difference between revisions
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= | ||
* [[ | * [[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", | |||
"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} | |||
] | |||
} | } | ||
</pre> | </pre> |
Latest revision as of 01:46, 6 July 2017
Internal
Overview
The default scheduler policy file:
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} ] }