Pod placement of operator workloads

By default, OLM places Pods on arbitrary worker nodes when it installs an operator or deploys operand workloads.

  1. Determine the node or nodes to target for the Pods.

    If a label already identifies the nodes, such as node-role.kubernetes.io/app, note it. Otherwise, add a label, such as myoperator, by editing the node directly. You use this label later as the node selector.

  2. Optional: To allow only Pods that have a certain label to run on the nodes, add a taint to the nodes by editing them directly.

    Use an effect that prevents new Pods that do not match the taint from being scheduled on the nodes. For example, a myoperator:NoSchedule taint prevents new Pods that do not match the taint from being scheduled onto that node, but existing Pods on the node can remain.

  3. Create a namespace that is configured with a default node selector and, if you added a taint, a matching toleration.