Improve scheduler policy configuration examples
This commit is contained in:
parent
f0341a6f2a
commit
27216de59e
|
@ -1,20 +0,0 @@
|
|||
{
|
||||
"kind" : "Policy",
|
||||
"apiVersion" : "v1",
|
||||
"predicates" : [
|
||||
{"name" : "PodFitsHostPorts"},
|
||||
{"name" : "PodFitsResources"},
|
||||
{"name" : "NoDiskConflict"},
|
||||
{"name" : "NoVolumeZoneConflict"},
|
||||
{"name" : "MatchNodeSelector"},
|
||||
{"name" : "HostName"}
|
||||
],
|
||||
"priorities" : [
|
||||
{"name" : "LeastRequestedPriority", "weight" : 1},
|
||||
{"name" : "BalancedResourceAllocation", "weight" : 1},
|
||||
{"name" : "ServiceSpreadingPriority", "weight" : 1},
|
||||
{"name" : "EqualPriority", "weight" : 1}
|
||||
],
|
||||
"hardPodAffinitySymmetricWeight" : 10,
|
||||
"alwaysCheckAllPredicates" : false
|
||||
}
|
|
@ -0,0 +1,102 @@
|
|||
{
|
||||
"kind": "Policy",
|
||||
"apiVersion": "v1",
|
||||
"predicates": [
|
||||
{
|
||||
"name": "CheckNodeUnschedulable"
|
||||
},
|
||||
{
|
||||
"name": "CheckVolumeBinding"
|
||||
},
|
||||
{
|
||||
"name": "GeneralPredicates"
|
||||
},
|
||||
{
|
||||
"name": "MatchInterPodAffinity"
|
||||
},
|
||||
{
|
||||
"name": "MaxEBSVolumeCount"
|
||||
},
|
||||
{
|
||||
"name": "MaxGCEPDVolumeCount"
|
||||
},
|
||||
{
|
||||
"name": "MaxAzureDiskVolumeCount"
|
||||
},
|
||||
{
|
||||
"name": "MaxCSIVolumeCountPred"
|
||||
},
|
||||
{
|
||||
"name": "NoDiskConflict"
|
||||
},
|
||||
{
|
||||
"name": "NoVolumeZoneConflict"
|
||||
},
|
||||
{
|
||||
"name": "PodToleratesNodeTaints"
|
||||
}
|
||||
],
|
||||
"priorities": [
|
||||
{
|
||||
"name": "ServiceSpreadingPriority",
|
||||
"weight": 1
|
||||
},
|
||||
{
|
||||
"name": "EqualPriority",
|
||||
"weight": 1
|
||||
},
|
||||
{
|
||||
"name": "ImageLocalityPriority",
|
||||
"weight": 1
|
||||
},
|
||||
{
|
||||
"name": "MostRequestedPriority",
|
||||
"weight": 1
|
||||
},
|
||||
{
|
||||
"name": "SelectorSpreadPriority",
|
||||
"weight": 1
|
||||
},
|
||||
{
|
||||
"name": "InterPodAffinityPriority",
|
||||
"weight": 1
|
||||
},
|
||||
{
|
||||
"name": "LeastRequestedPriority",
|
||||
"weight": 1
|
||||
},
|
||||
{
|
||||
"name": "BalancedResourceAllocation",
|
||||
"weight": 1
|
||||
},
|
||||
{
|
||||
"name": "NodePreferAvoidPodsPriority",
|
||||
"weight": 10000
|
||||
},
|
||||
{
|
||||
"name": "NodeAffinityPriority",
|
||||
"weight": 1
|
||||
},
|
||||
{
|
||||
"name": "TaintTolerationPriority",
|
||||
"weight": 1
|
||||
},
|
||||
{
|
||||
"name": "GPUAllocationPriority",
|
||||
"weight": 10
|
||||
}
|
||||
],
|
||||
"extenders" : [
|
||||
{
|
||||
"urlPrefix": "http://127.0.0.1:12346/scheduler",
|
||||
"filterVerb": "filter",
|
||||
"bindVerb": "bind",
|
||||
"prioritizeVerb": "prioritize",
|
||||
"weight": 5,
|
||||
"enableHttps": false,
|
||||
"nodeCacheCapable": false
|
||||
}
|
||||
],
|
||||
"hardPodAffinitySymmetricWeight" : 10,
|
||||
"alwaysCheckAllPredicates" : false
|
||||
}
|
Loading…
Reference in New Issue