Skip to content

Conversation

@hhzhang16
Copy link
Contributor

@hhzhang16 hhzhang16 commented Jul 8, 2025

Overview:

CodeRabbit had requested some changes on mr #1766 that broke the deploy yamls. This MR fixes them

Details:

Where should the reviewer start?

Related Issues: (use one of the action keywords Closes / Fixes / Resolves / Relates to)

  • closes GitHub issue: #xxx

Summary by CodeRabbit

  • Chores
    • Updated deployment configurations to use a fixed container image version (0.3.1) instead of the "latest" tag for all relevant services.
    • Changed GPU resource specification from "nvidia.com/gpu" to a simplified "gpu" key in deployment files.
    • No changes to resource quantities, environment variables, or other configuration values.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Jul 8, 2025

Walkthrough

All deployment YAML files for various LLM configurations were updated to use a fixed container image version (0.3.1) instead of the latest tag. Additionally, GPU resource keys in the resource specifications were changed from nvidia.com/gpu to the more generic gpu across all relevant worker services. No other configuration changes were made.

Changes

Files (Grouped) Change Summary
examples/llm/deploy/agg.yaml
examples/llm/deploy/agg_router.yaml
examples/llm/deploy/disagg.yaml
examples/llm/deploy/disagg_router.yaml
examples/vllm_v0/deploy/agg.yaml
examples/vllm_v0/deploy/disagg.yaml
examples/vllm_v0/deploy/disagg_planner.yaml
examples/vllm_v1/deploy/agg.yaml
examples/vllm_v1/deploy/disagg.yaml
examples/vllm_v1/deploy/disagg_planner.yaml
Updated container image tags from latest to 0.3.1 and replaced GPU resource key nvidia.com/gpu with gpu in all relevant worker service resource specifications. No other changes to configuration, arguments, or environment variables.

Poem

In YAML fields where versions dwell,
The tag "latest" bid farewell.
Now "0.3.1" stands proud and clear,
With "gpu" keys for all to cheer.
A rabbit hops with joy anew—
Deployments neat, precise, and true!
🐇✨


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

♻️ Duplicate comments (12)
examples/vllm_v0/deploy/disagg_planner.yaml (2)

37-37: Same image-immutability concern as above

See earlier note on preferring digest-pinned images over mutable tags.

Also applies to: 65-65, 93-93, 119-119, 145-145


58-58: Repeat of the gpu resource-name issue

Identical concern as raised for the v1 manifest – please validate cluster support.

Also applies to: 62-62, 86-86, 90-90

examples/vllm_v1/deploy/agg.yaml (2)

37-37: Tag still mutable – recommend digest pinning

Same reasoning as previous manifests: lock the image by digest.

Also applies to: 62-62, 89-89


82-82: Non-standard gpu resource key

Same scheduler-compatibility concern applies here.

Also applies to: 86-86

examples/llm/deploy/agg.yaml (2)

37-37: Pin image by digest for deterministic rollouts

Applying the digest recommendation here will keep runtime behaviour consistent.

Also applies to: 62-62, 89-89


82-82: Verify gpu resource availability

Same comment as earlier manifests.

Also applies to: 86-86

examples/vllm_v0/deploy/agg.yaml (2)

37-37: Digest pinning suggested

Replicating the image-immutability suggestion.

Also applies to: 64-64


57-57: gpu resource key – double-check cluster config

Replicating the GPU resource-name concern.

Also applies to: 61-61

examples/vllm_v0/deploy/disagg.yaml (1)

54-61: Same GPU-key concern as above

The resource name gpu will be ignored by the default NVIDIA device-plugin.
See previous comment in examples/llm/deploy/disagg.yaml.

Also applies to: 80-88

examples/llm/deploy/disagg_router.yaml (1)

103-111: GPU resource key check

Mirrors the risk highlighted earlier – verify your cluster supports the custom gpu key.

Also applies to: 130-138

examples/llm/deploy/agg_router.yaml (1)

103-111: Confirm custom GPU resource key

Same concern regarding gpu vs nvidia.com/gpu.

examples/vllm_v1/deploy/disagg.yaml (1)

78-86: Validate non-standard GPU resource name

Ensure the cluster exposes gpu as an extended resource or pods will not schedule.

Also applies to: 105-113

🧹 Nitpick comments (1)
examples/vllm_v1/deploy/disagg_planner.yaml (1)

37-37: Pin the image with a digest for full immutability

Great move switching away from the latest tag, but relying solely on a version tag still allows the registry owner to re-push the same tag with different bits.
Consider pinning to the SHA-256 digest to guarantee bit-for-bit reproducibility across environments.

-          image: nvcr.io/nvidia/ai-dynamo/vllm-runtime:0.3.1
+          image: nvcr.io/nvidia/ai-dynamo/vllm-runtime@sha256:<digest>

Also applies to: 63-63, 91-91, 119-119, 145-145, 171-171

📜 Review details

Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 24bede9 and 7f5af2b.

📒 Files selected for processing (10)
  • examples/llm/deploy/agg.yaml (3 hunks)
  • examples/llm/deploy/agg_router.yaml (4 hunks)
  • examples/llm/deploy/disagg.yaml (4 hunks)
  • examples/llm/deploy/disagg_router.yaml (5 hunks)
  • examples/vllm_v0/deploy/agg.yaml (2 hunks)
  • examples/vllm_v0/deploy/disagg.yaml (3 hunks)
  • examples/vllm_v0/deploy/disagg_planner.yaml (5 hunks)
  • examples/vllm_v1/deploy/agg.yaml (3 hunks)
  • examples/vllm_v1/deploy/disagg.yaml (4 hunks)
  • examples/vllm_v1/deploy/disagg_planner.yaml (6 hunks)
🧰 Additional context used
🧠 Learnings (10)
examples/vllm_v0/deploy/disagg_planner.yaml (2)
Learnt from: julienmancuso
PR: ai-dynamo/dynamo#1474
File: deploy/cloud/operator/internal/controller/dynamocomponent_controller.go:1302-1306
Timestamp: 2025-06-11T21:18:00.425Z
Learning: In the Dynamo operator, the project’s preferred security posture is to set a Pod-level `PodSecurityContext` with `runAsUser`, `runAsGroup`, and `fsGroup` all set to `1000`, and then selectively override the user at the individual container level (e.g., `RunAsUser: 0` for Kaniko) when root is required.
Learnt from: nnshah1
PR: ai-dynamo/dynamo#1444
File: tests/fault_tolerance/configs/agg_tp_1_dp_8.yaml:31-38
Timestamp: 2025-07-01T15:33:53.262Z
Learning: In fault tolerance test configurations, the `resources` section under `ServiceArgs` specifies resources per individual worker, not total resources for all workers. So `workers: 8` with `gpu: '1'` means 8 workers × 1 GPU each = 8 GPUs total.
examples/vllm_v1/deploy/agg.yaml (2)
Learnt from: julienmancuso
PR: ai-dynamo/dynamo#1474
File: deploy/cloud/operator/internal/controller/dynamocomponent_controller.go:1302-1306
Timestamp: 2025-06-11T21:18:00.425Z
Learning: In the Dynamo operator, the project’s preferred security posture is to set a Pod-level `PodSecurityContext` with `runAsUser`, `runAsGroup`, and `fsGroup` all set to `1000`, and then selectively override the user at the individual container level (e.g., `RunAsUser: 0` for Kaniko) when root is required.
Learnt from: nnshah1
PR: ai-dynamo/dynamo#1444
File: tests/fault_tolerance/configs/agg_tp_1_dp_8.yaml:31-38
Timestamp: 2025-07-01T15:33:53.262Z
Learning: In fault tolerance test configurations, the `resources` section under `ServiceArgs` specifies resources per individual worker, not total resources for all workers. So `workers: 8` with `gpu: '1'` means 8 workers × 1 GPU each = 8 GPUs total.
examples/llm/deploy/agg_router.yaml (2)
Learnt from: julienmancuso
PR: ai-dynamo/dynamo#1474
File: deploy/cloud/operator/internal/controller/dynamocomponent_controller.go:1302-1306
Timestamp: 2025-06-11T21:18:00.425Z
Learning: In the Dynamo operator, the project’s preferred security posture is to set a Pod-level `PodSecurityContext` with `runAsUser`, `runAsGroup`, and `fsGroup` all set to `1000`, and then selectively override the user at the individual container level (e.g., `RunAsUser: 0` for Kaniko) when root is required.
Learnt from: nnshah1
PR: ai-dynamo/dynamo#1444
File: tests/fault_tolerance/configs/agg_tp_1_dp_8.yaml:31-38
Timestamp: 2025-07-01T15:33:53.262Z
Learning: In fault tolerance test configurations, the `resources` section under `ServiceArgs` specifies resources per individual worker, not total resources for all workers. So `workers: 8` with `gpu: '1'` means 8 workers × 1 GPU each = 8 GPUs total.
examples/llm/deploy/agg.yaml (2)
Learnt from: julienmancuso
PR: ai-dynamo/dynamo#1474
File: deploy/cloud/operator/internal/controller/dynamocomponent_controller.go:1302-1306
Timestamp: 2025-06-11T21:18:00.425Z
Learning: In the Dynamo operator, the project’s preferred security posture is to set a Pod-level `PodSecurityContext` with `runAsUser`, `runAsGroup`, and `fsGroup` all set to `1000`, and then selectively override the user at the individual container level (e.g., `RunAsUser: 0` for Kaniko) when root is required.
Learnt from: nnshah1
PR: ai-dynamo/dynamo#1444
File: tests/fault_tolerance/configs/agg_tp_1_dp_8.yaml:31-38
Timestamp: 2025-07-01T15:33:53.262Z
Learning: In fault tolerance test configurations, the `resources` section under `ServiceArgs` specifies resources per individual worker, not total resources for all workers. So `workers: 8` with `gpu: '1'` means 8 workers × 1 GPU each = 8 GPUs total.
examples/vllm_v1/deploy/disagg.yaml (2)
Learnt from: julienmancuso
PR: ai-dynamo/dynamo#1474
File: deploy/cloud/operator/internal/controller/dynamocomponent_controller.go:1302-1306
Timestamp: 2025-06-11T21:18:00.425Z
Learning: In the Dynamo operator, the project’s preferred security posture is to set a Pod-level `PodSecurityContext` with `runAsUser`, `runAsGroup`, and `fsGroup` all set to `1000`, and then selectively override the user at the individual container level (e.g., `RunAsUser: 0` for Kaniko) when root is required.
Learnt from: nnshah1
PR: ai-dynamo/dynamo#1444
File: tests/fault_tolerance/configs/agg_tp_1_dp_8.yaml:31-38
Timestamp: 2025-07-01T15:33:53.262Z
Learning: In fault tolerance test configurations, the `resources` section under `ServiceArgs` specifies resources per individual worker, not total resources for all workers. So `workers: 8` with `gpu: '1'` means 8 workers × 1 GPU each = 8 GPUs total.
examples/vllm_v1/deploy/disagg_planner.yaml (2)
Learnt from: julienmancuso
PR: ai-dynamo/dynamo#1474
File: deploy/cloud/operator/internal/controller/dynamocomponent_controller.go:1302-1306
Timestamp: 2025-06-11T21:18:00.425Z
Learning: In the Dynamo operator, the project’s preferred security posture is to set a Pod-level `PodSecurityContext` with `runAsUser`, `runAsGroup`, and `fsGroup` all set to `1000`, and then selectively override the user at the individual container level (e.g., `RunAsUser: 0` for Kaniko) when root is required.
Learnt from: nnshah1
PR: ai-dynamo/dynamo#1444
File: tests/fault_tolerance/configs/agg_tp_1_dp_8.yaml:31-38
Timestamp: 2025-07-01T15:33:53.262Z
Learning: In fault tolerance test configurations, the `resources` section under `ServiceArgs` specifies resources per individual worker, not total resources for all workers. So `workers: 8` with `gpu: '1'` means 8 workers × 1 GPU each = 8 GPUs total.
examples/llm/deploy/disagg_router.yaml (2)
Learnt from: julienmancuso
PR: ai-dynamo/dynamo#1474
File: deploy/cloud/operator/internal/controller/dynamocomponent_controller.go:1302-1306
Timestamp: 2025-06-11T21:18:00.425Z
Learning: In the Dynamo operator, the project’s preferred security posture is to set a Pod-level `PodSecurityContext` with `runAsUser`, `runAsGroup`, and `fsGroup` all set to `1000`, and then selectively override the user at the individual container level (e.g., `RunAsUser: 0` for Kaniko) when root is required.
Learnt from: nnshah1
PR: ai-dynamo/dynamo#1444
File: tests/fault_tolerance/configs/agg_tp_1_dp_8.yaml:31-38
Timestamp: 2025-07-01T15:33:53.262Z
Learning: In fault tolerance test configurations, the `resources` section under `ServiceArgs` specifies resources per individual worker, not total resources for all workers. So `workers: 8` with `gpu: '1'` means 8 workers × 1 GPU each = 8 GPUs total.
examples/vllm_v0/deploy/agg.yaml (2)
Learnt from: julienmancuso
PR: ai-dynamo/dynamo#1474
File: deploy/cloud/operator/internal/controller/dynamocomponent_controller.go:1302-1306
Timestamp: 2025-06-11T21:18:00.425Z
Learning: In the Dynamo operator, the project’s preferred security posture is to set a Pod-level `PodSecurityContext` with `runAsUser`, `runAsGroup`, and `fsGroup` all set to `1000`, and then selectively override the user at the individual container level (e.g., `RunAsUser: 0` for Kaniko) when root is required.
Learnt from: nnshah1
PR: ai-dynamo/dynamo#1444
File: tests/fault_tolerance/configs/agg_tp_1_dp_8.yaml:31-38
Timestamp: 2025-07-01T15:33:53.262Z
Learning: In fault tolerance test configurations, the `resources` section under `ServiceArgs` specifies resources per individual worker, not total resources for all workers. So `workers: 8` with `gpu: '1'` means 8 workers × 1 GPU each = 8 GPUs total.
examples/vllm_v0/deploy/disagg.yaml (2)
Learnt from: julienmancuso
PR: ai-dynamo/dynamo#1474
File: deploy/cloud/operator/internal/controller/dynamocomponent_controller.go:1302-1306
Timestamp: 2025-06-11T21:18:00.425Z
Learning: In the Dynamo operator, the project’s preferred security posture is to set a Pod-level `PodSecurityContext` with `runAsUser`, `runAsGroup`, and `fsGroup` all set to `1000`, and then selectively override the user at the individual container level (e.g., `RunAsUser: 0` for Kaniko) when root is required.
Learnt from: nnshah1
PR: ai-dynamo/dynamo#1444
File: tests/fault_tolerance/configs/agg_tp_1_dp_8.yaml:31-38
Timestamp: 2025-07-01T15:33:53.262Z
Learning: In fault tolerance test configurations, the `resources` section under `ServiceArgs` specifies resources per individual worker, not total resources for all workers. So `workers: 8` with `gpu: '1'` means 8 workers × 1 GPU each = 8 GPUs total.
examples/llm/deploy/disagg.yaml (2)
Learnt from: julienmancuso
PR: ai-dynamo/dynamo#1474
File: deploy/cloud/operator/internal/controller/dynamocomponent_controller.go:1302-1306
Timestamp: 2025-06-11T21:18:00.425Z
Learning: In the Dynamo operator, the project’s preferred security posture is to set a Pod-level `PodSecurityContext` with `runAsUser`, `runAsGroup`, and `fsGroup` all set to `1000`, and then selectively override the user at the individual container level (e.g., `RunAsUser: 0` for Kaniko) when root is required.
Learnt from: nnshah1
PR: ai-dynamo/dynamo#1444
File: tests/fault_tolerance/configs/agg_tp_1_dp_8.yaml:31-38
Timestamp: 2025-07-01T15:33:53.262Z
Learning: In fault tolerance test configurations, the `resources` section under `ServiceArgs` specifies resources per individual worker, not total resources for all workers. So `workers: 8` with `gpu: '1'` means 8 workers × 1 GPU each = 8 GPUs total.
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
  • GitHub Check: Build and Test - vllm
🔇 Additional comments (6)
examples/vllm_v1/deploy/disagg_planner.yaml (1)

84-84: gpu is not a standard extended-resource name – verify scheduler compatibility

Kubernetes default GPU device-plugin advertises nvidia.com/gpu; switching to a plain gpu resource will be ignored unless:

  1. the cluster nodes expose an extended resource named exactly gpu, or
  2. you are using the new ResourceClass API with a matching resourceName.

Please confirm that the cluster has been configured accordingly, otherwise pods will never be scheduled on GPU nodes.

Also applies to: 88-88, 112-112, 116-116

examples/llm/deploy/disagg.yaml (1)

37-38: Good move: pinning images to 0.3.1

Pinning removes the non-determinism of the latest tag and helps with rollbacks / CVE triage.

Also applies to: 62-63, 89-90, 116-117

examples/vllm_v0/deploy/disagg.yaml (1)

37-38: Image tag pinned – looks good

Also applies to: 64-65, 91-92

examples/llm/deploy/disagg_router.yaml (1)

37-38: Pinned image tag acknowledged

Also applies to: 62-63, 87-88, 114-115, 141-142

examples/llm/deploy/agg_router.yaml (1)

37-38: Pinned image tag OK

Also applies to: 62-63, 87-88, 114-115

examples/vllm_v1/deploy/disagg.yaml (1)

37-38: Image pinning confirmed

Also applies to: 62-63, 89-90, 116-117

@hhzhang16 hhzhang16 enabled auto-merge (squash) July 8, 2025 17:27
@hhzhang16 hhzhang16 merged commit 427d547 into main Jul 8, 2025
10 of 11 checks passed
@hhzhang16 hhzhang16 deleted the fix-deploy-crds branch July 8, 2025 17:36
@biswapanda
Copy link
Contributor

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants