Advanced Scheduling and Node Selectors

    For the pod to be eligible to run on a node, the pod must have the indicated key-value pairs as the label on the node.

    If you are using node affinity and node selectors in the same pod configuration, see the below.

    Configuring Node Selectors

    Using in a pod configuration, you can ensure that pods are only placed onto nodes with specific labels.

    1. Modify the master configuration file, /etc/origin/master/master-config.yaml, to add nodeSelectorLabelBlacklist to the admissionConfig section with the labels that are assigned to the node hosts you want to deny pod placement:

    2. Restart OKD for the changes to take effect.