# Selecting Cluster Nodes

You can use Kubernetes [Node Selector](https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#nodeselector) to specify a set of nodes of the cluster on which Akamas containers will be scheduled.

To do so you should first look for a label common to all those nodes or create a new one. You can read more about labels in Kubernetes in the [official documentation](https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#updating-labels).

Once you have defined a label (say `nodeRole: akamas` ), you can edit the values.yaml file defined in the [Installing Akamas](https://docs.akamas.io/akamas-docs/3.6/installing/kubernetes/install-akamas) section adding the following properties.

```yaml
# Node selector for core akamas services
nodeSelector:
  nodeRole: akamas

# Node selector for elasticsearch database
elasticsearch:
  nodeSelector:
    nodeRole: akamas

# Node selector for postgresql database
postgresql:
  primary:
    nodeSelector:
      nodeRole: akamas

# Node selector for airflow
airflow:
  nodeSelector:
    nodeRole: akamas
```

You can then re-apply the chart using the `helm upgrade` command.
