1.8.3. Configuring the Service Mesh Operator to run on infrastructure nodes
This task should only be performed if the Service Mesh Operator runs on an infrastructure node.
If the operator will run on a worker node, skip this task.
Prerequisites
- The Service Mesh Operator must be installed.
- One of the nodes comprising the deployment must be an infrastructure node. For more information, see "Creating infrastructure machine sets."
Procedure
List the operators installed in the namespace:
$ oc -n openshift-operators get subscriptionsEdit the Service Mesh Operator
Subscriptionresource to specify where the operator should run:$ oc -n openshift-operators edit subscription <name>1 - 1
<name>represents the name of theSubscriptionresource. The default name of theSubscriptionresource isservicemeshoperator.
Add the
nodeSelectorandtolerationstospec.configin theSubscriptionresource:apiVersion: operators.coreos.com/v1alpha1 kind: Subscription metadata: labels: operators.coreos.com/servicemeshoperator.openshift-operators: "" name: servicemeshoperator namespace: openshift-operators # ... spec: config: nodeSelector:1 node-role.kubernetes.io/infra: "" tolerations:2 - effect: NoSchedule key: node-role.kubernetes.io/infra value: reserved - effect: NoExecute key: node-role.kubernetes.io/infra value: reserved