diff --git a/docs/admin/config/advanced-cluster-config.md b/docs/admin/config/advanced-cluster-config.md index db7e88b089..4af61f6316 100644 --- a/docs/admin/config/advanced-cluster-config.md +++ b/docs/admin/config/advanced-cluster-config.md @@ -46,6 +46,25 @@ The following configurations allow you to enable or disable features, control pe | spec.pod-grouper.args.gangSchedulingKnative (boolean) | Enables gang scheduling for inference workloads.For backward compatibility with versions earlier than v2.19, change the value to false | true | | spec.runai-scheduler.args.verbosity (int) | Configures the level of detail in the logs generated by the scheduler service | 4 | +### Use nodeSelectorTerms Flag + +To include or exclude specific nodes from running workloads within a cluster managed by Run:ai, use the `nodeSelectorTerms` flag. For additional details, see [Kubernetes nodeSelector](https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#nodeselector). + +Label the nodes using the below: + +* key: Label key (e.g., zone, instance-type). +* operator: Operator defining the inclusion/exclusion condition (In, NotIn, Exists, DoesNotExist). +* values: List of values for the key when using In or NotIn. + +The below example shows how to exclude nodes by filtering out non-NVIDIA GPUs in a cluster with mixed nodes, based on product type GPU label: + +``` bash +nodeSelectorTerms: +- matchExpressions: + - key: nvidia.com/gpu.product + operator: Exists +``` + !!! Tip To view the full runaiconfig object structure, use the following command: ```