The tolerations
allow a pod
to be scheduled on a node
that has a matching taint. A taint is a key value pair that is assigned to a node. When a pod does
not have a matching taint, it cannot be scheduled on that node.
About this task
You can apply tolerations to the pods so that pods are scheduled with the respective
taints. For more information, see Taints and Tolerations.
Procedure
- In the Red Hat® OpenShift® web console, from the side
navigation menu, click
and locate the custom resource that you want to customize.
- Click Instances and open the instance of
the custom resource that you want to work on.
- Click the YAML tab to open the
editor.
- If the
podTemplates
field does not exist, add
the podTemplates
field inside the spec
property.
- Add or change the pod entry according to your requirement.
For example in
the following sample code, coreapi
is the pod entry that is
edited.
- Add the field
tolerations
according to your requirements.
- name: coreapi
tolerations:
- key: "onlycoreapi"
operator: "Exists"
effect: "NoSchedule"
- Click Save. Wait for the operator to reconcile and apply your
changes.