Skip to content

Commit

Permalink
Improve scheduler policy configuration examples
Browse files Browse the repository at this point in the history
  • Loading branch information
bsalamat committed Mar 25, 2019
1 parent f0341a6 commit 27216de
Show file tree
Hide file tree
Showing 3 changed files with 102 additions and 20 deletions.
20 changes: 0 additions & 20 deletions staging/scheduler-policy-config.json

This file was deleted.

102 changes: 102 additions & 0 deletions staging/scheduler-policy/scheduler-policy-config.json
Original file line number Diff line number Diff line change
@@ -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
}

0 comments on commit 27216de

Please sign in to comment.