-
Notifications
You must be signed in to change notification settings - Fork 94
feat(recipes): OKE RDMA fabric wiring (L40S RoCE + GB200 IB) #2356
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
atif1996
wants to merge
1
commit into
feat/oke-gpustack-profile
Choose a base branch
from
feat/oke-fabric-wiring
base: feat/oke-gpustack-profile
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
48 changes: 48 additions & 0 deletions
48
recipes/components/network-operator/manifests/nic-cluster-policy-oke-gb200.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,48 @@ | ||
| # NicClusterPolicy for GB200 OKE (OCI) — rdmaSharedDevicePlugin over InfiniBand. | ||
| # | ||
| # Mirrors the AOR OCI GB200 config validated on gb200-ew. No ofedDriver (host | ||
| # MOFED), no SR-IOV: the NVL72 east-west fabric is IB on the rdma0-3 netdevs | ||
| # (oci_hpc.rdma_device_names_mode=2 kernel cmdline names them deterministically). | ||
| # | ||
| # The IB devices are advertised as nvidia.com/mlnxnics — the same resource | ||
| # name the L40S SR-IOV path uses, so workloads request RDMA uniformly | ||
| # across OKE fabrics. | ||
| apiVersion: mellanox.com/v1alpha1 | ||
| kind: NicClusterPolicy | ||
| metadata: | ||
| name: nic-cluster-policy | ||
| annotations: | ||
| helm.sh/hook: post-install,post-upgrade | ||
| helm.sh/hook-weight: "5" | ||
| helm.sh/hook-delete-policy: before-hook-creation | ||
| labels: | ||
| app.kubernetes.io/managed-by: {{ .Release.Service }} | ||
| helm.sh/chart: {{ printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }} | ||
| spec: | ||
| rdmaSharedDevicePlugin: | ||
| image: k8s-rdma-shared-dev-plugin | ||
| repository: nvcr.io/nvidia/mellanox | ||
| version: network-operator-v26.4.1 | ||
| config: | | ||
| { | ||
| "configList": [ | ||
| { | ||
| "resourcePrefix": "nvidia.com", | ||
| "resourceName": "mlnxnics", | ||
| "rdmaHcaMax": 63, | ||
| "selectors": { | ||
| "linkTypes": ["infiniband"], | ||
| "ifNames": ["rdma0", "rdma1", "rdma2", "rdma3"] | ||
| } | ||
| } | ||
| ] | ||
| } | ||
| deploymentTolerations: | ||
| - key: CriticalAddonsOnly | ||
| operator: Exists | ||
| tolerations: | ||
| # RDMA DaemonSets must land on tainted GPU nodes. | ||
| - key: nvidia.com/gpu | ||
| operator: Exists | ||
| - key: CriticalAddonsOnly | ||
| operator: Exists |
73 changes: 73 additions & 0 deletions
73
recipes/components/network-operator/manifests/nic-cluster-policy-oke-l40s.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,73 @@ | ||
| # NicClusterPolicy for L40S OKE (OCI) SR-IOV RoCE. | ||
| # | ||
| # The network-operator Helm chart installs the operator + CRD but does not template | ||
| # a NicClusterPolicy CR (values-oke-l40s.yaml sets deployCR: false). This manifest | ||
| # creates it so the operator reconciles the RoCE fabric stack. Hand-rendered from | ||
| # AOR's network-operator/nicclusterpolicy.yaml.tmpl (provider: oci branch, with | ||
| # network.type == roce → nvIpam + secondaryNetwork included). | ||
| # | ||
| # OCI specifics (vs Forge IB): NO ofedDriver — OCI nodes carry host MOFED, consumed | ||
| # by the GPU Operator driver via driver.rdma.useHostMofed (l40s-oke-ubuntu leaf). One | ||
| # sriovDevicePlugin resource, nvidia.com/mlnxnics, selecting the OCI ConnectX VF | ||
| # device IDs (101a = ConnectX-5 Ex VF, 101e = mlx5Gen VF). RoCE also needs nv-ipam | ||
| # (VF IP allocation) + secondaryNetwork/multus (attach the VF into workload pods). | ||
| # vendor 15b3 = Mellanox. | ||
| apiVersion: mellanox.com/v1alpha1 | ||
| kind: NicClusterPolicy | ||
| metadata: | ||
| name: nic-cluster-policy | ||
| annotations: | ||
| helm.sh/hook: post-install,post-upgrade | ||
| helm.sh/hook-weight: "5" | ||
| helm.sh/hook-delete-policy: before-hook-creation | ||
| labels: | ||
| app.kubernetes.io/managed-by: {{ .Release.Service }} | ||
| helm.sh/chart: {{ printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }} | ||
| spec: | ||
| # RoCE: allocate IPs for the RDMA VFs and wire them into pods via multus. | ||
| nvIpam: | ||
| image: nvidia-k8s-ipam | ||
| repository: ghcr.io/mellanox | ||
| version: v0.2.0 | ||
| enableWebhook: false | ||
| containerResources: | ||
| - name: nv-ipam-node | ||
| requests: | ||
| cpu: 500m | ||
| memory: 1Gi | ||
| limits: | ||
| cpu: "1" | ||
| memory: 2Gi | ||
| secondaryNetwork: | ||
| cniPlugins: | ||
| image: plugins | ||
| repository: ghcr.io/k8snetworkplumbingwg | ||
| version: v1.6.2-update.1 | ||
| multus: | ||
| image: multus-cni | ||
| repository: ghcr.io/k8snetworkplumbingwg | ||
| version: v4.2.1 | ||
| sriovDevicePlugin: | ||
| image: sriov-network-device-plugin | ||
| repository: ghcr.io/k8snetworkplumbingwg | ||
| version: v3.9.0 | ||
| config: | | ||
| { | ||
| "resourceList": [ | ||
| { | ||
| "resourcePrefix": "nvidia.com", | ||
| "resourceName": "mlnxnics", | ||
| "selectors": {"isRdma":true,"vendors":["15b3"],"devices":["101a","101e"]} | ||
| } | ||
| ] | ||
| } | ||
| # Operator DaemonSet placement: system/monitoring nodes only (matches AOR). | ||
| deploymentTolerations: | ||
| - key: CriticalAddonsOnly | ||
| operator: Exists | ||
| tolerations: | ||
| # RDMA DaemonSets must land on tainted GPU nodes. | ||
| - key: nvidia.com/gpu | ||
| operator: Exists | ||
| - key: CriticalAddonsOnly | ||
| operator: Exists |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| # network-operator Helm values for GB200 OKE (OCI) InfiniBand. | ||
| # | ||
| # OCI GB200 NVL72 model (vs L40S RoCE / Forge IB): NO ofedDriver — nodes carry host | ||
| # MOFED — and no SR-IOV/nv-ipam/multus either. East-west is InfiniBand (rdma0-3), | ||
| # served by rdmaSharedDevicePlugin from the post-install NicClusterPolicy manifest, | ||
| # NOT the chart. deployCR off so that manifest CR is authoritative. | ||
| # nfd.enabled: false — GPU Operator's NFD is used; no second NFD. | ||
| deployCR: false | ||
| nvIpam: | ||
| enabled: false | ||
| secondaryNetwork: | ||
| deploy: false | ||
| nfd: | ||
| enabled: false | ||
| operator: | ||
| resources: | ||
| limits: | ||
| cpu: "1" | ||
| memory: 2Gi | ||
| requests: | ||
| cpu: 500m | ||
| memory: 2Gi | ||
| # Operator placement comes from the bundler's system-node scheduling | ||
| # injection (registry nodeScheduling: operator.nodeSelector / | ||
| # operator.tolerations) — no hardcoded affinity here. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,34 @@ | ||
| # network-operator Helm values for L40S OKE (OCI) SR-IOV RoCE. | ||
| # Hand-rendered from AOR's network-operator/values.yaml.tmpl (provider: oci) + | ||
| # nicclusterpolicy.yaml.tmpl (oci branch, network.type == roce). | ||
| # | ||
| # OCI model (vs Forge IB / Mistral DOCA): NO ofedDriver — OCI bare-metal nodes carry | ||
| # host MOFED, so the GPU Operator uses it via driver.rdma.useHostMofed (set on the | ||
| # l40s-oke-ubuntu leaf). network-operator's job here is the SR-IOV VF device plugin | ||
| # (advertises nvidia.com/mlnxnics RDMA VFs) plus nv-ipam + secondaryNetwork (multus) | ||
| # for RoCE — all supplied by the post-install NicClusterPolicy manifest, NOT the chart. | ||
| # | ||
| # deployCR/nvIpam/secondaryNetwork: AICR's wrapper defaults are on (deployCR: true, | ||
| # nvIpam.enabled: true, secondaryNetwork.deploy: true) — they template the wrapper's | ||
| # own NicClusterPolicy. Turn deployCR off so our manifest CR is authoritative (it is | ||
| # the only place the OCI VF selectors 101a/101e can be expressed); the operator | ||
| # reconciles nv-ipam + secondaryNetwork + sriovDevicePlugin from that CR regardless. | ||
| # nfd.enabled: false — GPU Operator's NFD is used; no second NFD. | ||
| deployCR: false | ||
| nvIpam: | ||
| enabled: false | ||
| secondaryNetwork: | ||
| deploy: false | ||
| nfd: | ||
| enabled: false | ||
| operator: | ||
| resources: | ||
| limits: | ||
| cpu: "1" | ||
| memory: 2Gi | ||
| requests: | ||
| cpu: 500m | ||
| memory: 2Gi | ||
| # Operator placement comes from the bundler's system-node scheduling | ||
| # injection (registry nodeScheduling: operator.nodeSelector / | ||
| # operator.tolerations) — no hardcoded affinity here. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔒 Security & Privacy | 🟡 Minor | ⚡ Quick win
🔎 Supported by static analysis
🏁 Script executed:
Repository: NVIDIA/aicr
Length of output: 1237
🏁 Script executed:
Repository: NVIDIA/aicr
Length of output: 50368
🏁 Script executed:
Repository: NVIDIA/aicr
Length of output: 11829
🏁 Script executed:
Repository: NVIDIA/aicr
Length of output: 44048
🏁 Script executed:
Repository: NVIDIA/aicr
Length of output: 32632
Scope the exemptions to
NicClusterPolicyresources.TestComponentManifestImagesAreDigestPinnedchecks the globalimageDigestExemptionsmap for every image in every component manifest. The four current references occur only innic-cluster-policy-oke-l40s.yaml, but another resource can reuse one of these tags and bypass the digest check. Scope each exemption by manifest or resource context.🤖 Prompt for AI Agents