<p>I want to specify the node of the scheduling destination for all pods deployed in operator.yaml.</p>
<pre><code>        # (Optional) Discover Agent NodeAffinity.
        - name: DISCOVER_AGENT_NODE_AFFINITY
          value: &quot;role=storage&quot;
</code></pre>
<pre><code>  rook-ceph                   rook-discover-29qtt                                                0 (0%)        0 (0%)      0 (0%)      
</code></pre>
<p>I also want to deploy other operator-pods (csi-cephfsplugin / provider, csi-ebdplugin / provider) on the specified storage node. What yaml should I write?</p>

メイカー
<p>You can use <code>nodeSelector</code> field in podSpec to select the nodes where you want the given pod to run. You will have to add a label to the target node first(e.g. <em>nodeType=storage</em>), then add the same label-selector in <code>nodeSelector</code> field in podSpec.</p>
<p>Example from K8s Documentation:</p>
<pre><code>apiVersion: v1
kind: Pod
metadata:
  name: nginx
spec:
  containers:
  - name: nginx
    image: nginx
  nodeSelector:
    disktype: ssd
</code></pre>
<p><a href="https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/" rel="nofollow noreferrer">https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/</a></p>
