Maximo Application Suite
Customer-managed

Customizing workload tolerations

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

  1. In the Red Hat® OpenShift® web console, from the side navigation menu, click Administration > CustomResourceDefinitions and locate the custom resource that you want to customize.
  2. Click Instances and open the instance of the custom resource that you want to work on.
  3. Click the YAML tab to open the editor.
  4. If the podTemplates field does not exist, add the podTemplates field inside the spec property.
    Note:
    • For IBM® Maximo® Health, inside the spec property, add the components, health, and then the podTemplates field.
    • For the IoT tool, inside the spec property, add the components section. In the components section, add all the component names, and then the podTemplates field. For example,
      spec:
       components:
        actions: # actions is the IoT component name
         podTemplates: {} # templates for the actions component operator
  5. 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.
  6. Add the field tolerations according to your requirements.
    - name: coreapi
      tolerations:
        - key: "onlycoreapi"
          operator: "Exists"
          effect: "NoSchedule"
    
  7. Click Save. Wait for the operator to reconcile and apply your changes.