K8s launch kit config

From NVIDIA/k8s-launch-kit · View interactive version

K8s launch kit config is an AI agent skill from the GitHub repository NVIDIA/k8s-launch-kit. Use this skill when the user needs help understanding, creating, or editing a k8s-launch-kit (l8k) configuration file (l8k-config.yaml or cluster-config.yaml). Activate for: config file questions, parameter tuning, subnet configuration, NV-IPAM setup, DOCA driver settings, maintenance concurrency, N

How to use this skill

Skill file

l8k: Configuration Files

PREREQUISITE: Read ../k8s-launch-kit-shared/SKILL.md for install paths, global flags, and output modes.

Understand, create, or edit l8k configuration files.

Desired networkOperator.secondaryNetwork.multus and .cniPlugins each

accept auto/managed/external (empty/omitted/null means auto). Discovery writes

discoveredSecondaryNetwork evidence without replacing desired policy. Multus

does not prove reference plugin binaries exist. See

ownership rules.

NVIDIA AI Enterprise selection

For Host workflows, --nvaie-release 9.0 (or saved nvaieRelease: "9.0")

constrains Network Operator to the exact matching release catalog. Discovery

collects observations and preserves the selection; validation refreshes the

platform and component evidence and adds it to the existing HTML/JSON outputs.

Generation preserves the constraint. Conflicting explicit Network Operator

selections fail; other NVAIE components remain externally managed. The component

allowlist compares recognized operator, driver and toolkit container image versions

using Kubernetes API metadata and existing installed DOCA-HOST discovery evidence,

regardless of the desired container-driver setting. Saved packages are labeled as

discovery snapshots.

Unsupported products are omitted. HTML uses one Expected / Discovered / Match

table; JSON retains details. No new runtime probes are added, and undetected

installation forms do not prove absence. Required

missing/unknown evidence is non-passing in validation. The bundled matrix is an

offline snapshot and kind does not qualify bare-metal hardware. See the

full contract.

File Types

| File | Source | Purpose |

|------|--------|---------|

| cluster-config.yaml | Generated by l8k discover | Hardware inventory plus the resolved deployment profile |

| l8k-config.yaml | User-created or copied from cluster-config | Full config with both hardware + deployment settings |

Usage

# Use a config file for generation
l8k generate --user-config my-config.yaml \
  --save-deployment-files ./output

# Combine user config with live discovery (hardware refreshed, settings kept)
l8k discover --user-config my-config.yaml \
  --kubeconfig ~/.kube/config \
  --save-cluster-config ./updated-config.yaml

Profile Resolution

Fresh discovery and file-backed generation resolve settings with this

precedence:

  1. Canonical built-in defaults from the repository-root cluster-config.yaml.
  2. Hardware-derived profile defaults.
  3. Existing config values.
  4. Explicit CLI flags.

Generation never rewrites the source config. It stores the exact effective

configuration at <output>/.l8k/resolved-config.yaml; deploy and validate use

that sidecar automatically when no explicit config is passed. Explicit false,

zero, and empty values override defaults. YAML null means unset.

Discovery with --user-config refreshes inventory and discovered observation

sections while preserving unrelated settings. Explicit CLI flags override their

corresponding fields. An enabled nvaieRelease also persists its matching

Network Operator catalog coordinates. Generation still fills

missing profile fields when it consumes that config.

Config Sections Quick Reference

| Section | What It Controls |

|---------|-----------------|

| networkOperator | Operator namespace, version, image repository, Helm repository, and skipHelmChart ownership switch |

| docaDriver | OFED/DOCA driver image, version, blacklist settings |

| maintenance | Maintenance Operator, SR-IOV drain, and legacy OFED upgrade concurrency |

| cluster | Optional authoritative podCIDRs and serviceCIDRs lists for IPPool collision checks; YAML only |

| nvIpam | NV-IPAM per-node block size, IP pool ranges, and subnet generation |

| sriov | VF count, resource prefix, MTU, link type |

| hostdev | Host device resource name |

| rdmaShared | RDMA shared device resource name |

| ipoib | IPoIB master interface, resource name |

| macvlan | MacVLAN master interface, mode |

| nicConfigurationOperator | NIC firmware template settings |

| spectrumX | OVS bridge config, multiplane mode, RDMA settings |

| profile | Profile selection criteria (fabric, deployment, multirail) |

| clusterConfig[] | Per-group hardware: NICs, nodes, capabilities, selectors |

Discovery saves the effective RA naming in

clusterConfig[].spectrumX.interfaceNames (netdevPrefix and rdmaPrefix).

These are derived values: resolution refreshes them after mode or naming

changes, including for older configs without this block. Change the existing

spectrumX.singlePlane, hwplb, or swplb prefix settings for custom naming.

PF inventory names remain observed values. Naming templates and PF selectors

consume the same resolved per-group prefixes; standard profiles are unaffected.

VR HWPLB uses eth_r%rail_id%_p%plane_id% and

roce_r%rail_id%_n%nic_id%; traditional HWPLB retains roce_r%rail_id%.

Each clusterConfig[] entry has these key fields:

is selected by a host netplan match.macaddress stanza with a non-empty

set-name. The flag identifies a potential conflict with NCO udev naming;

host-specific MACs are not persisted. If generation would emit a

NicInterfaceNameTemplate for this group, clean up the affected set-name

stanzas and re-run discovery instead of editing this flag by hand.

netplan observation was unavailable or incomplete, or a MAC-based set-name

rule could not be checked because an expected PF has no readable current MAC.

A readable /etc without a netplan directory or a complete configuration

without MAC-based set-name rules is a verified negative. Generation warns and

continues with interface-name rules unless netplanManaged is true. Review

host netplan configuration and re-run discovery to resolve the warning.

network interface, traffic class, rail, NUMA, GPU affinity, and model (the

VPD model/description string read from NicDevice.Status.modelName).

For the full field-by-field reference with types, defaults, and descriptions,

read references/config-reference.md.

Topology Presets

The presets/ directory contains pre-recorded topologies for known hardware combinations. A preset is a topology.yaml file with the following shape:

machineType: PowerEdge-XE9680   # required
gpuType: NVIDIA-H200            # required — both keys are matched as a pair
nicModel: BlueField-3 SuperNIC (ConnectX-7)
gpuInterconnect: NV18
numaNodes: 2

# Required if the preset will be used with `l8k generate --for`.
# Discovery-time overlay does not need this block.
capabilities:
  nodes:
    sriov: true
    rdma: true
    ib: false

pfs:
  - deviceID: a2dc
    pciAddress: 0000:1a:00.0
    traffic: east-west
    rail: 0
    numaNode: 0
    connectedGPU: GPU0
    gpuProximity: PIX

Lookup is exact-match on (machineType, gpuType). No any-GPU fallback — a preset that doesn't declare gpuType: is rejected at load time. Multi-variant presets for the same machine (different GPU SKUs) live in separate directories with composite names like PowerEdge-XE9680-H200 / PowerEdge-XE9680-B200. The directory name is shown by l8k preset list and is what l8k generate --for <name> accepts.

Validation deviations. When the matched preset's PF count, PCI addresses, or device IDs don't exactly match discovered hardware, the preset is NOT applied — discovery keeps the live-discovered topology (traffic/rail/NUMA), because overlaying a preset onto a different PCI layout would corrupt the classification (a coincidentally-overlapping PCI address would inherit the preset's unrelated traffic/rail/GPU fields). The discrepancies are recorded under clusterConfig[*].presetDeviation and every subsequent config load re-emits a warning listing each deviation. The preset's authoritative topology is overlaid only on an exact match (zero deviations); presetApplied: true appears only in that case. Part-number and PSID differences are expected (firmware/SKU variants) and never block application.

Common Edits

# Change VF count per PF and fabric-specific MTUs
sriov:
  numVfs: 16
  ethernetMtu: 9000
  infinibandMtu: 4000

# Set the DOCA driver version. Advanced users can also forward literal
# environment variables through the generated NicClusterPolicy or
# NicNodePolicy; custom values override any value produced by another
# docaDriver field with the same name.
docaDriver:
  version: "doca3.3.0-26.01-1.0.0.0-6"
  env:
    - name: THIRD_PARTY_RDMA_MODULES
      value: "nvidia_peermem"

# Allow four simultaneous maintenance operations. Network Operator 26.1+
# uses the global Maintenance Operator limits; older releases use the legacy
# SR-IOV/OFED limits where applicable.
maintenance:
  maxParallelOperations: 4
  maxUnavailable: 4
  maxNodeMaintenanceTimeSeconds: 3600
  maxParallelUpgrades: 4

# The selected release supplies the Helm repository URL.
networkOperator:
  # Keep generating/applying Network Operator CRs but let another system own
  # the Helm release. Generate/deploy/validate have the equivalent CLI flag
  # --skip-network-operator-helm; clean reads this persistent ownership setting
  # and retains the release while deleting Network Operator CRs.
  skipHelmChart: true

# Configure NV-IPAM subnets manually
nvIpam:
  perNodeBlockSize: 10
  subnets:
    - subnet: "10.10.0.0/16"
      gateway: "10.10.0.1"

# Namespaces for the secondary-network CRs + example test DaemonSets.
# One independent copy is rendered per namespace (shared resources like
# IPPools and NodePolicies are NOT duplicated). Defaults to ["default"].
networkNamespaces: ["my-namespace"]

Tips

repeating profile flags; use flags only for overrides.

the installed l8k version.

upstream beta or release candidate for the next patch must not replace its

public Network Operator artifact set. Update the entry again when the patch

is GA.

See Also

OpenShift

OpenShift configuration uses top-level flavor: ocp, sriov.operatorNamespace, nfd.operatorNamespace, nfd.configurationName, and maintenance.operatorNamespace. Install operator packages externally; l8k configures existing installations.

Standard NIC tuning

nicConfigurationOperator.deployNicConfigurationTemplate defaults to true.

Set it to false or pass --deploy-nic-configuration-template=false to opt out;

explicit YAML and CLI false values are preserved.

Root, generate and discover accept --deploy-nic-configuration-template[=false].

It enables NCO independently of interface naming and renders per-source,

east-west PCI-scoped templates for standard SR-IOV, RDMA-shared and host-device

profiles on k8s/OCP. VF count comes from sriov.numVfs; link type comes from

profile.fabric. Ethernet gets DSCP trust and priority-3 PFC; InfiniBand omits

RoCE tuning. Spectrum-X keeps its dedicated required templates independently

of this standard-profile toggle. Only SR-IOV disables the Mellanox

plugin (Helm values on k8s, additive disablePlugins merge on OCP). Kubernetes

external Helm owners must configure that plugin themselves.

Deploy and validate consume the generated template and require all matched

NicDevices to report current ConfigUpdateInProgress=False with reason

UpdateSuccessful; stale/partial status waits and failures surface. Opting out

does not restore applied NIC settings. On k8s, omitted templates (also for

unselected groups) block deploy preflight unless --overwrite-existing is used,

which deletes them. OCP preserves existing templates and disabled plugins.

Generation rejects inventory with selected and excluded ports on the same PCI

device. Review whole-NIC scope, including ports absent from inventory, and qualify

runtime RoCE support for the installed NCO/DOCA/RHCOS versions before live use. See docs/reference/configuration.md#nic-configuration-and-naming.

Cluster address collision inputs

cluster.podCIDRs and cluster.serviceCIDRs are optional authoritative lists

of all applicable IPv4/IPv6 ranges. Omitted/null means discover at deploy;

explicit empty lists are invalid. Each override replaces its class of discovery.

Generation checks actual IPPools against supplied ranges without API access.

Deploy checks all Node InternalIPs and, absent overrides, pod ranges and

ServiceCIDRs before any writes. Pod ranges come from the OpenShift Network

spec.clusterNetwork when that API serves ranges, otherwise from Node pod

ranges; the probe is capability-based, not gated by flavor. Denied reads and

malformed Network ranges fail. Missing pod ranges warn by Node name; missing

ServiceCIDR APIs warn, but denied/failed reads and empty served APIs fail.

Use authoritative pod ranges for CNIs whose IPAM differs from Node podCIDRs.

See configuration

for fallback, permissions and the IPPool-only scope.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.