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.
-
You have installed the {oc-first}.
-
You are logged in with cluster administrator permissions.
-
Edit a
Subscription,HyperConverged, orHostPathProvisionerobject using the {oc-first}, by running the following command:$ oc edit <resource_type> <resource_name> -n {CNVNamespace} -
Save the file to apply the changes.