# Restrict projects to specific worker nodes

**URL:** <https://forums.suse.com/t/restrict-projects-to-specific-worker-nodes/18412>\
**Category:** SUSE Rancher Prime\
**Created:** [September 24, 2020, 10:36am UTC](https://forums.suse.com/t/restrict-projects-to-specific-worker-nodes/18412 "2020-09-24T10:36:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![adomeij](https://avatars.discourse-cdn.com/v4/letter/a/9d8465/32.png) [@adomeij](https://forums.suse.com/u/adomeij)\
**Post date:** [September 24, 2020, 10:36am UTC](https://forums.suse.com/t/restrict-projects-to-specific-worker-nodes/18412/1 "2020-09-24T10:36:57Z")

</div>

Hi,  
How/where do i set up (annotate??) a project so that workloads in the project only run on specifc nodes?

Thanks in advance  
Anders

---

<div class="post-metadata">

**Author:** ![yeti](https://avatars.discourse-cdn.com/v4/letter/y/f05b48/32.png) [@yeti](https://forums.suse.com/u/yeti)\
**Post date:** [September 24, 2020, 2:13pm UTC](https://forums.suse.com/t/restrict-projects-to-specific-worker-nodes/18412/2 "2020-09-24T14:13:49Z")

</div>

Label your target nodes and use a nodeSelector block in your deployment yaml as explained below:

> **[Assigning Pods to Nodes](https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/)**
>
> You can constrain a PodA Pod represents a set of running containers in your cluster. to only be able to run on particular Node(s)A node is a worker machine in Kubernetes. , or to prefer to run on particular nodes. There are several ways to do this,...
