From 27216de59e007f4a88b65256bbb1cb30c53662b3 Mon Sep 17 00:00:00 2001 From: "Bobby (Babak) Salamat" Date: Mon, 25 Mar 2019 12:09:52 -0700 Subject: [PATCH] Improve scheduler policy configuration examples --- staging/scheduler-policy-config.json | 20 ---- ...scheduler-policy-config-with-extender.json | 0 .../scheduler-policy-config.json | 102 ++++++++++++++++++ 3 files changed, 102 insertions(+), 20 deletions(-) delete mode 100644 staging/scheduler-policy-config.json rename staging/{ => scheduler-policy}/scheduler-policy-config-with-extender.json (100%) create mode 100644 staging/scheduler-policy/scheduler-policy-config.json diff --git a/staging/scheduler-policy-config.json b/staging/scheduler-policy-config.json deleted file mode 100644 index 048299e5e..000000000 --- a/staging/scheduler-policy-config.json +++ /dev/null @@ -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 -} diff --git a/staging/scheduler-policy-config-with-extender.json b/staging/scheduler-policy/scheduler-policy-config-with-extender.json similarity index 100% rename from staging/scheduler-policy-config-with-extender.json rename to staging/scheduler-policy/scheduler-policy-config-with-extender.json diff --git a/staging/scheduler-policy/scheduler-policy-config.json b/staging/scheduler-policy/scheduler-policy-config.json new file mode 100644 index 000000000..6e359933b --- /dev/null +++ b/staging/scheduler-policy/scheduler-policy-config.json @@ -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 +}