Apply the cluster node selector to GPU Service instance placement and capacity

Open
#6,833 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
47/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
kubernetes, python

Research direction

Start by reading the cluster selector configuration in gpustack/k8s/values.py and the linked ResourceFlavor generation code in gpustack-operator/pkg/worker/controllers/worker/node_flavor.go; then trace how instance placement and available capacity use node labels and tolerations. Define how the selector applies to new and existing clusters, including the separate instance selector, and update the cluster configuration help text. Done means placement and capacity both honor the effective selector while existing clusters remain opt-in.

Written by the indexing model from the issue text.

Description

❓ Is your enhancement related to a problem?

An administrator configured k8s_options.nodeSelector to reserve control-plane nodes for long-running models and run GPU Service instances only on worker nodes. The selector controls where GPUStack components run, but GPU Service instances are scheduled through Kueue using the node labels and tolerations of their assigned ResourceFlavor.

If a control-plane node matches the flavor and has sufficient resources, it remains eligible. The generated flavor also tolerates all taints, so a control-plane NoSchedule taint alone does not exclude it. Administrators must separately configure which nodes GPU Service manages to enforce the intended placement. Cluster selector configuration · ResourceFlavor generation

💡 Describe the solution you'd like

Use the cluster node selector as the default placement constraint for GPU Service instances in new clusters. A node must match both the cluster selector and the requirements of the selected InstanceType. Apply the same constraint when calculating available capacity.

For example, with nodeSelector: {node-pool: gpu-worker}, a control-plane node without that label should contribute no GPU Service capacity and receive no new instance Pods, even if its hardware matches the InstanceType.

Allow administrators to configure a separate instance selector when components and instances need different node pools. For existing clusters, make the change opt-in so upgrading does not unexpectedly remove capacity or disrupt running instances. Update the cluster configuration help text to make the effective scope clear.

Dominant language
Python
Stars
6.1k
Forks
750
Avg merge
1d 8h
Merged PRs (30d)
109

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from gpustack/gpustack

All issues in gpustack/gpustack

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.