/etc/origin/master/scheduler.json: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
No edit summary
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
=Overview=
=Overview=


This file represents the default [[OpenShift_Concepts#Scheduler_Policy|scheduler policy]] and it is referred from [[master-config.yaml]] as [[Master-config.yml#schedulerConfigFile|kubernetesMasterConfig.schedulerConfigFile]].
This file represents the default [[OpenShift_Concepts#Scheduler_Policy|scheduler policy]] and it is referred from [[master-config.yml]] as [[Master-config.yml#schedulerConfigFile|kubernetesMasterConfig.schedulerConfigFile]].
 
=serviceAffinity=
 
<font color=red>'''TODO'''</font> Document serviceAffinity. Also see {{Internal|OpenShift Concepts#ServiceAffinity|OpenShift Concepts - ServiceAffinity}}


=Content=
=Content=

Latest revision as of 22:59, 11 December 2017

Overview

This file represents the default scheduler policy and it is referred from master-config.yml as kubernetesMasterConfig.schedulerConfigFile.

serviceAffinity

TODO Document serviceAffinity. Also see

OpenShift Concepts - ServiceAffinity

Content

{
    "apiVersion": "v1",
    "kind": "Policy",
    "predicates": [
        {
            "name": "NoVolumeZoneConflict"
        },
        {
            "name": "MaxEBSVolumeCount"
        },
        {
            "name": "MaxGCEPDVolumeCount"
        },
        {
            "name": "MatchInterPodAffinity"
        },
        {
            "name": "NoDiskConflict"
        },
        {
            "name": "GeneralPredicates"
        },
        {
            "name": "PodToleratesNodeTaints"
        },
        {
            "name": "CheckNodeMemoryPressure"
        },
        {
            "name": "CheckNodeDiskPressure"
        },
        {
            "argument": {
                "serviceAffinity": {
                    "labels": [
                        "region"
                    ]
                }
            },
            "name": "Region"
        }
    ],
    "priorities": [
        {
            "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
        },
        {
            "argument": {
                "serviceAntiAffinity": {
                    "label": "zone"
                }
            },
            "name": "Zone",
            "weight": 2
        }
    ]
}