Repository navigation
feat(gke-node-pool): support DRANET on A5X and add maintenance_exclusion_until_end_of_support - #6819
vikramvs-gg wants to merge 1 commit into
Conversation
…ion_until_end_of_support
Summary of ChangesHello, 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
Using Gemini Code AssistThe 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
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 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
|
There was a problem hiding this comment.
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.
Summary
1. DRANET on A5X
a5x-tois_dranet_supported_machine. Without it,enable_dranet: trueon A5X pools works but triggersthe
dranet_requirementscheck warning ("DRANET is only supported on … specific machine types").a5x-tois_mellanox_rdma_machine(module) andisMellanoxRdmaMachine(pkg/config/expand.go), so theauto-applied ResourceClaimTemplate is
default-rdma(mrdma.google.com), notdefault-netdev. On A5X,netdev.google.comwould select the Intel host NIC instead of the 8 ConnectX-9 RDMA NICs.TestIsMellanoxRdmaMachine.2.
maintenance_exclusion_until_end_of_supportinput (defaultfalse)CUSTOM_CONTAINERD) node pools on release-channel clusters to have a node pool maintenance exclusion until end of support.true, setsmaintenance_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 createofexamples/gke-a5x-bmwithenable_dranet: trueand the new input: no warnings.dranet_requirementswarning;default-rdmacreated; DRANET publishes 8 Mellanoxrdma=truedevices per node;mrdma.google.comexcludes Intel NICs, so the template selects exactly the 8 ConnectX-9 RDMA devices;
maintenancePolicy.exclusionUntilEndOfSupport.enabled: true;NCCL_MNNVL_ENABLE=0,via NET/IB/…/GDRDMA) andib_write_bwon all 8 RDMA VFs pass.Notes
enable_dranet: true,and the new input defaults to
false.