Skip to content

Latest commit

 

History

History
46 lines (38 loc) · 1.99 KB

File metadata and controls

46 lines (38 loc) · 1.99 KB

Applying node placement rules

You can apply node placement rules by editing a Subscription, HyperConverged, or HostPathProvisioner object using the {oc-first}.

affinity

Enables you to use more expressive syntax to set rules that match nodes with pods. Affinity also allows for more nuance in how the rules are applied. For example, you can specify that a rule is a preference, not a requirement. If a rule is a preference, pods are still scheduled when the rule is not satisfied.

tolerations

Allows pods to be scheduled on nodes that have matching taints. If a taint is applied to a node, that node only accepts pods that tolerate the taint.

Prerequisites
  • You have installed the {oc-first}.

  • You are logged in with cluster administrator permissions.

Procedure
  1. Edit a Subscription, HyperConverged, or HostPathProvisioner object using the {oc-first}, by running the following command:

    $ oc edit <resource_type> <resource_name> -n {CNVNamespace}
  2. Save the file to apply the changes.