Skip to content

feat: Allow for the gym to run on Kubernetes - #1231

Closed
cooktheryan wants to merge 5 commits into
NVIDIA-NeMo:mainfrom
redhat-et:openshift
Closed

cooktheryan wants to merge 5 commits into
NVIDIA-NeMo:mainfrom
redhat-et:openshift

Conversation

@cooktheryan

Copy link
Copy Markdown

With some of the experiments we have been doing we found value in having the gym available through kubernetes. This is an attempt to bring this integration to the repository.

Hoping to answer some of the questions around the following issues

#1026 #953 #688 #546 #532

@cooktheryan
cooktheryan requested a review from a team as a code owner May 5, 2026 19:22
@copy-pr-bot

copy-pr-bot Bot commented May 5, 2026

Copy link
Copy Markdown

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@cooktheryan
cooktheryan force-pushed the openshift branch 2 times, most recently from cab09a4 to 98ff76b Compare May 7, 2026 14:20
@cooktheryan cooktheryan changed the title Allow for the gym to run on Kubernetes feat: Allow for the gym to run on Kubernetes May 8, 2026
@cooktheryan

Copy link
Copy Markdown
Author

Closes #1269

@cwing-nvidia

Copy link
Copy Markdown
Contributor

hey @cooktheryan thanks so much for your contribution here! flagging to @ananthsub @hemildesai @terrykong

Comment thread k8s/base/route-dashboard.yaml Resolved
cooktheryan and others added 3 commits May 20, 2026 15:13
…ay autoscaling

Deploy NeMo-Gym benchmarks on any Kubernetes cluster using KubeRay for
distributed Ray task execution. Includes Kustomize overlays for code-gen
and example-single-tool-call benchmarks, with OpenShift composition overlays.

Key features:
- Multi-stage Dockerfile (resources, agent, model targets)
- RayCluster with in-tree autoscaling (1-4 workers, 300s idle timeout)
- Worker pods sized for code execution (2 CPU request / 4 CPU limit, 4-8Gi memory)
- PSS restricted-compatible security contexts throughout
- OpenShift support via Kustomize components (Routes, OCP NetworkPolicies)
- CI workflows for image builds and kind-based integration tests
- NetworkPolicy for pod-to-pod traffic isolation

Signed-off-by: Ryan Cook <[email protected]>

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Signed-off-by: Ryan Cook <[email protected]>
This file was not referenced by any kustomization.yaml and would
never be included in a kustomize build.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Signed-off-by: Ryan Cook <[email protected]>
- Kustomize namePrefix + instance labels for multi-benchmark isolation
- Remove quay.io/redhat-et image references; all images from ghcr.io
- Remove namespace.yaml and networkpolicy (handled externally)
- Add name-reference.yaml for CRD field mappings

Signed-off-by: Ryan Cook <[email protected]>
Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Signed-off-by: Ryan Cook <[email protected]>
@cwing-nvidia cwing-nvidia mentioned this pull request Jun 23, 2026
2 of 10 tasks
@ritaneves ritaneves linked an issue Jun 25, 2026 that may be closed by this pull request
@hemildesai

Copy link
Copy Markdown
Contributor

@cooktheryan , first, apologies for the delayed follow-up. We appreciate the work you have put into this contribution. We should have closed the loop sooner. For now, we can host the OpenShift example in the Gym repository under:
examples/deployments/openshift/. For additional context, we have been working through related areas in Gym and we are also planning an RFC for job orchestration and expect to share it soon. That RFC does not need to block this contribution — the OpenShift example can move forward independently at the location above.

Also, is there a way to avoid the change in nemo_gym/server_utils.py?

@nemo-automation-bot nemo-automation-bot Bot added the community-request Issue reported or requested by someone from the community label Jul 21, 2026
@svcnvidia-nemo-ci svcnvidia-nemo-ci added the waiting-on-customer Waiting on the original author to respond label Jul 21, 2026
@svcnvidia-nemo-ci svcnvidia-nemo-ci added waiting-on-maintainers Waiting on maintainers to respond waiting-on-customer Waiting on the original author to respond and removed waiting-on-customer Waiting on the original author to respond waiting-on-maintainers Waiting on maintainers to respond labels Aug 5, 2026
@svcnvidia-nemo-ci svcnvidia-nemo-ci added area:orchestration Job submission, deployment, services, and lifecycle management feature New capabilities, enhancements, or enablement work labels Oct 20, 2026
@svcnvidia-nemo-ci svcnvidia-nemo-ci added waiting-on-maintainers Waiting on maintainers to respond and removed waiting-on-customer Waiting on the original author to respond labels Oct 29, 2026
@cooktheryan cooktheryan closed this Nov 2, 2026
@svcnvidia-nemo-ci svcnvidia-nemo-ci removed the waiting-on-maintainers Waiting on maintainers to respond label Nov 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:orchestration Job submission, deployment, services, and lifecycle management community-request Issue reported or requested by someone from the community feature New capabilities, enhancements, or enablement work

Projects

None yet

Development

Successfully merging this pull request may close these issues.

epic: Enable Kubernetes for the Gym for OpenShift

4 participants