# nodeSelector for storage, log and stateless pods

**URL:** <https://forums.foundationdb.org/t/nodeselector-for-storage-log-and-stateless-pods/3987>\
**Category:** Kubernetes Operator\
**Created:** [May 27, 2023, 8:33pm UTC](https://forums.foundationdb.org/t/nodeselector-for-storage-log-and-stateless-pods/3987 "2023-05-27T20:33:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![elbek](https://sea1.discourse-cdn.com/foundationdb/user_avatar/forums.foundationdb.org/elbek/32/1597_2.png) [@elbek](https://forums.foundationdb.org/u/elbek)\
**Post date:** [May 27, 2023, 8:33pm UTC](https://forums.foundationdb.org/t/nodeselector-for-storage-log-and-stateless-pods/3987/1 "2023-05-27T20:33:07Z")

</div>

How would one configure k8s node selector for storage, log and stateless pods?

Thanks.

---

<div class="post-metadata">

**Author:** ![johscheuer](https://avatars.discourse-cdn.com/v4/letter/j/f475e1/32.png) [@johscheuer](https://forums.foundationdb.org/u/johscheuer)\
**Post date:** [May 30, 2023, 7:49am UTC](https://forums.foundationdb.org/t/nodeselector-for-storage-log-and-stateless-pods/3987/2 "2023-05-30T07:49:11Z")

</div>

In the FoundationDBCluster spec ([fdb-kubernetes-operator/cluster\_spec.md at main · FoundationDB/fdb-kubernetes-operator · GitHub](https://github.com/FoundationDB/fdb-kubernetes-operator/blob/main/docs/cluster_spec.md#foundationdbclusterspec)) there is a setting called processes, in that setting you can define a PodTemplate and that can include a NodeSelector, e.g.:

```plaintext
apiVersion: apps.foundationdb.org/v1beta2
kind: FoundationDBCluster
metadata:
    name: sample-cluster
spec:
  version: 7.1.33
  processes:
    general:
      podTemplate:
        spec:
         nodeSelctor:
           test: stateless
    log:
      podTemplate:
        spec:
         nodeSelctor:
           test: log
    storage:
      podTemplate:
        spec:
         nodeSelctor:
           test: storage

```
