-
Notifications
You must be signed in to change notification settings - Fork 502
/
Copy path_scheduler-policy-json.tpl
40 lines (40 loc) · 1.24 KB
/
_scheduler-policy-json.tpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
{
"kind" : "Policy",
"apiVersion" : "v1",
"predicates": [
{"name": "MatchInterPodAffinity"},
{"name": "CheckVolumeBinding"},
{{- if semverCompare "<1.12-0" .Capabilities.KubeVersion.GitVersion }}
{"name": "CheckNodeCondition"},
{"name": "CheckNodeMemoryPressure"},
{"name": "CheckNodeDiskPressure"},
{{- end }}
{"name": "GeneralPredicates"},
{"name": "HostName"},
{"name": "PodFitsHostPorts"},
{"name": "MatchNodeSelector"},
{"name": "PodFitsResources"},
{"name": "NoDiskConflict"},
{"name": "PodToleratesNodeTaints"}
],
"priorities": [
{"name": "EqualPriority", "weight": 1},
{"name": "ImageLocalityPriority", "weight": 1},
{"name": "LeastRequestedPriority", "weight": 1},
{"name": "BalancedResourceAllocation", "weight": 1},
{"name": "SelectorSpreadPriority", "weight": 1},
{"name": "NodePreferAvoidPodsPriority", "weight": 1},
{"name": "NodeAffinityPriority", "weight": 1},
{"name": "TaintTolerationPriority", "weight": 1},
{"name": "MostRequestedPriority", "weight": 1}
],
"extenders": [
{
"urlPrefix": "http://127.0.0.1:10262/scheduler",
"filterVerb": "filter",
"weight": 1,
"httpTimeout": 30000000000,
"enableHttps": false
}
]
}