Skip to content

feat(gke-node-pool): support DRANET on A5X and add maintenance_exclusion_until_end_of_support - #6819

Open
vikramvs-gg wants to merge 1 commit into
GoogleCloudPlatform:developfrom
vikramvs-gg:gke-a5x-dranet
Open

vikramvs-gg wants to merge 1 commit into
GoogleCloudPlatform:developfrom
vikramvs-gg:gke-a5x-dranet

Conversation

@vikramvs-gg

Copy link
Copy Markdown
Contributor

Summary

1. DRANET on A5X

  • Add a5x- to is_dranet_supported_machine. Without it, enable_dranet: true on A5X pools works but triggers
    the dranet_requirements check warning ("DRANET is only supported on … specific machine types").
  • Add a5x- to is_mellanox_rdma_machine (module) and isMellanoxRdmaMachine (pkg/config/expand.go), so the
    auto-applied ResourceClaimTemplate is default-rdma (mrdma.google.com), not default-netdev. On A5X,
    netdev.google.com would select the Intel host NIC instead of the 8 ConnectX-9 RDMA NICs.
  • Add TestIsMellanoxRdmaMachine.

2. maintenance_exclusion_until_end_of_support input (default false)

  • Upcoming GKE versions requires custom-image (CUSTOM_CONTAINERD) node pools on release-channel clusters to have a node pool maintenance exclusion until end of support.
  • When true, sets maintenance_policy { exclusion_until_end_of_support { enabled = true } } on the node pool
    (regular and sub-block pools). No change when unset.

Testing

  • go test -tags=unit ./..., go vet, goimports, tflint, catalog-gen (no changes), make.
  • gcluster create of examples/gke-a5x-bm with enable_dranet: true and the new input: no warnings.
  • Deployed on A5X hardware (4 nodes):
    • no dranet_requirements warning;
    • default-rdma created; DRANET publishes 8 Mellanox rdma=true devices per node; mrdma.google.com
      excludes Intel NICs, so the template selects exactly the 8 ConnectX-9 RDMA devices;
    • node pool shows maintenancePolicy.exclusionUntilEndOfSupport.enabled: true;
    • NCCL over RDMA (NCCL_MNNVL_ENABLE=0, via NET/IB/…/GDRDMA) and ib_write_bw on all 8 RDMA VFs pass.

Notes

  • No behavior change for existing blueprints: the DRANET change only matters for A5X with enable_dranet: true,
    and the new input defaults to false.

@vikramvs-gg vikramvs-gg added the release-module-improvements Added to release notes under the "Module Improvements" heading. label Dec 4, 2026
@vikramvs-gg
vikramvs-gg requested a review from a team as a code owner December 4, 2026 12:55
@gemini-code-assist

Copy link
Copy Markdown
Contributor

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request introduces support for A5X machine types within the GKE node pool module, specifically enabling DRANET functionality and ensuring proper RDMA device configuration. Additionally, it adds a new configuration option to support mandatory maintenance exclusions for GKE 1.37+ custom image node pools, ensuring compliance with newer GKE requirements.

Highlights

  • DRANET Support for A5X: Enabled DRANET support for A5X machine types by updating compatibility checks and ensuring the correct Mellanox RDMA device class is selected.
  • Maintenance Exclusion Input: Added a new input 'maintenance_exclusion_until_end_of_support' to allow configuring node pool maintenance exclusions, which is required for GKE 1.37+ custom image node pools.
  • Testing Improvements: Added unit tests for 'isMellanoxRdmaMachine' to ensure correct device class mapping across different machine types.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize the Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counterproductive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution. ↩

@vikramvs-gg
vikramvs-gg requested review from SwarnaBharathiMantena and removed request for wennanhuang December 4, 2026 12:57
@vikramvs-gg
vikramvs-gg requested review from agrawalkhushi18 and removed request for shubpal07 December 4, 2026 12:57

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request adds support for 'a5x' machine types by updating the Mellanox RDMA machine detection logic in both the Terraform module and the Go configuration package. Additionally, it introduces a new variable, maintenance_exclusion_until_end_of_support, to the GKE node pool module to comply with GKE 1.37+ requirements for custom image node pools, and updates the dranet_requirements validation message. I have no feedback to provide on these changes.

@github-actions github-actions Bot assigned agrawalkhushi18 and unassigned shubpal07 Dec 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release-module-improvements Added to release notes under the "Module Improvements" heading.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants