diff options
author | Brenton Leanhardt <bleanhar@redhat.com> | 2016-04-01 09:00:07 -0400 |
---|---|---|
committer | Brenton Leanhardt <bleanhar@redhat.com> | 2016-04-01 09:00:07 -0400 |
commit | c8f5f05df668eaa6502b17fed9dc8099e7fab258 (patch) | |
tree | a7f28710e0c2c599c7c914084d3fb1849bf9226a /roles/openshift_facts/library | |
parent | c818db9b485b19256e1c19573cd0640fdabcb109 (diff) | |
parent | ccc5a30e00144bdb7a9cc2339aa2cb65defdb230 (diff) | |
download | openshift-c8f5f05df668eaa6502b17fed9dc8099e7fab258.tar.gz openshift-c8f5f05df668eaa6502b17fed9dc8099e7fab258.tar.bz2 openshift-c8f5f05df668eaa6502b17fed9dc8099e7fab258.tar.xz openshift-c8f5f05df668eaa6502b17fed9dc8099e7fab258.zip |
Merge pull request #1680 from detiber/scheduler_config
Allow for overriding scheduler config
Diffstat (limited to 'roles/openshift_facts/library')
-rwxr-xr-x | roles/openshift_facts/library/openshift_facts.py | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/roles/openshift_facts/library/openshift_facts.py b/roles/openshift_facts/library/openshift_facts.py index 8411687a4..0d31d4ddf 100755 --- a/roles/openshift_facts/library/openshift_facts.py +++ b/roles/openshift_facts/library/openshift_facts.py @@ -1492,6 +1492,19 @@ class OpenShiftFacts(object): debug_level=2) if 'master' in roles: + scheduler_predicates = [ + {"name": "MatchNodeSelector"}, + {"name": "PodFitsResources"}, + {"name": "PodFitsPorts"}, + {"name": "NoDiskConflict"}, + {"name": "Region", "argument": {"serviceAffinity" : {"labels" : ["region"]}}} + ] + scheduler_priorities = [ + {"name": "LeastRequestedPriority", "weight": 1}, + {"name": "SelectorSpreadPriority", "weight": 1}, + {"name": "Zone", "weight" : 2, "argument": {"serviceAntiAffinity" : {"label": "zone"}}} + ] + defaults['master'] = dict(api_use_ssl=True, api_port='8443', controllers_port='8444', console_use_ssl=True, @@ -1507,7 +1520,9 @@ class OpenShiftFacts(object): session_secrets_file='', access_token_max_seconds=86400, auth_token_max_seconds=500, - oauth_grant_method='auto') + oauth_grant_method='auto', + scheduler_predicates=scheduler_predicates, + scheduler_priorities=scheduler_priorities) if 'node' in roles: defaults['node'] = dict(labels={}, annotations={}, |