Skip to content

Commit

Permalink
Provide a more ideal example for scheduler extender policy.
Browse files Browse the repository at this point in the history
We now use default predicates/priorities if they are unspecified in the policy
config (kubernetes/kubernetes#59363).

The other example in ./scheduler-policy-config.json shows how to use priorities
and predicates.

Let's use this example to show how to use extenders. When you are using
extenders you don't necessarily want to mess with priorities and predicates
(kubernetes/kubernetes#45188).

Also remove duplicate file.
  • Loading branch information
rohitagarwal003 committed Apr 9, 2018
1 parent 9e7cedb commit 37631d5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 47 deletions.
31 changes: 0 additions & 31 deletions scheduler/scheduler-policy-config-with-extender.json

This file was deleted.

18 changes: 2 additions & 16 deletions staging/scheduler-policy-config-with-extender.json
Original file line number Diff line number Diff line change
@@ -1,30 +1,16 @@
{
"kind" : "Policy",
"apiVersion" : "v1",
"predicates" : [
{"name" : "PodFitsHostPorts"},
{"name" : "PodFitsResources"},
{"name" : "NoDiskConflict"},
{"name" : "MatchNodeSelector"},
{"name" : "HostName"}
],
"priorities" : [
{"name" : "LeastRequestedPriority", "weight" : 1},
{"name" : "BalancedResourceAllocation", "weight" : 1},
{"name" : "ServiceSpreadingPriority", "weight" : 1},
{"name" : "EqualPriority", "weight" : 1}
],
"extenders" : [
{
"urlPrefix": "http://127.0.0.1:12346/scheduler",
"filterVerb": "filter",
"bindVerb": "bind",
"prioritizeVerb": "prioritize",
"preemptVerb": "preempt",
"weight": 5,
"enableHttps": false,
"nodeCacheCapable": false
}
],
"hardPodAffinitySymmetricWeight" : 10,
"alwaysCheckAllPredicates" : false
]
}

0 comments on commit 37631d5

Please sign in to comment.