k8s-launch-kit-pipeline

作成者: nvidia

このスキルは、ユーザーがk8s-launch-kit(l8k)パイプラインをエンドツーエンドで実行したい場合に使用します。クラスターハードウェアの検出、プロファイルの選択、マニフェストの生成などを行います。

npx skills add https://github.com/nvidia/k8s-launch-kit --skill k8s-launch-kit-pipeline

l8k: Full Pipeline

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

Run discovery + generation + deployment as a single command.

The pipeline operates on the default host target. Omitting --target keeps the established behavior; --target host is equivalent. The DPF target does not support this composite pipeline. For DPF, run the supported standalone discover, generate, and deploy commands with separate review between stages; see the DPF workflow. The root command snapshots its arguments and runs the complete concrete Host pipeline as one bound target operation.

The Host pipeline validates the post-annotation artifacts before replacing generated output, then deploys that same retained snapshot. If artifact validation fails, it reports the source file/document and does not enter Helm or resource apply. A standalone deploy loads its own snapshot from disk.

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.

Usage

The root command chains all phases in one invocation:

l8k --discover-cluster-config [--kubeconfig <PATH>] \
  --fabric <FABRIC> --deployment-type <TYPE> \
  --save-deployment-files <DIR> --deploy

Or use subcommands for a two-step approach:

l8k discover --save-cluster-config ./cluster-config.yaml && \
l8k generate --user-config ./cluster-config.yaml \
  --save-deployment-files <DIR> --deploy

The subcommand flow does not need to repeat profile flags: discovery resolves and persists them. Pass profile flags to either command only as explicit overrides.

Examples

# Full pipeline: discover + SR-IOV Ethernet + deploy (root command)
l8k --discover-cluster-config \
  --kubeconfig ~/.kube/config \
  --fabric ethernet --deployment-type sriov \
  --save-deployment-files ./output --deploy

# Full pipeline: Spectrum-X
l8k --discover-cluster-config \
  --kubeconfig ~/.kube/config \
  --spectrum-x RA2.2 --multiplane-mode hwplb --number-of-planes 4 \
  --save-deployment-files ./output --deploy

# Non-default operator namespace (applies to generate/deploy only — discover
# always uses its own nvidia-k8s-launch-kit namespace)
l8k --discover-cluster-config \
  --kubeconfig ~/.kube/config \
  --network-operator-namespace network-operator \
  --fabric ethernet --deployment-type sriov \
  --save-deployment-files ./output --deploy

# Agent / CI mode
l8k --discover-cluster-config \
  --kubeconfig ~/.kube/config \
  --fabric ethernet --deployment-type sriov \
  --save-deployment-files ./output --deploy \
  --output json --yes

# Pipeline with deployment dry-run (discovery still creates cluster resources)
l8k --discover-cluster-config \
  --kubeconfig ~/.kube/config \
  --fabric ethernet --deployment-type sriov \
  --save-deployment-files ./output --deploy --dry-run

# Subcommand alternative: discover then generate+deploy separately
l8k discover --kubeconfig ~/.kube/config \
  --fabric ethernet --deployment-type sriov \
  --save-cluster-config ./cluster-config.yaml && \
l8k generate --user-config ./cluster-config.yaml \
  --save-deployment-files ./output --deploy

# Skip discovery entirely with --for (known SKU)
l8k generate --user-config ./cluster-config.yaml \
  --for ThinkSystem-SR680a-V3 \
  --node-selector "nvidia.com/gpu.product=NVIDIA-H200" \
  --fabric ethernet --deployment-type sriov \
  --save-deployment-files ./output --deploy \
  --kubeconfig ~/.kube/config

Common Variations

Use CaseCommand
Discovery onlyl8k discover --save-cluster-config <PATH>
Generate onlyl8k generate --user-config <CONFIG> --save-deployment-files <DIR>
Generate + deployl8k generate ... --deploy
Full pipeline (root)l8k --discover-cluster-config ... --deploy
Full pipeline (subcommands)l8k discover ... && l8k generate ... --deploy
Full pipeline dry-runl8k --discover-cluster-config ... --deploy --dry-run
External Helm ownershipl8k ... --skip-network-operator-helm --deploy

Note: The root command's strength is chaining all phases — it runs discover, generate, and deploy in a single invocation. Use subcommands when you need intermediate inspection or different flags per phase.

With --skip-network-operator-helm, generation omits values.yaml and deploy skips the Network Operator Helm install/preflight boundary while continuing to apply and reconcile the generated custom resources.

Phase Order

  1. Discover — Probe hardware and persist its inventory; fresh discovery also resolves profile settings, while --user-config preserves non-clusterConfig sections
  2. Generate — Match profile, render templates, write YAMLs
  3. Deploy — Apply resources in dependency order

If any phase fails, subsequent phases are skipped. The JSON output includes which phase failed.

[!CAUTION] The full pipeline includes deployment. Verify the context and stay within the user's existing live-operation authorization. --dry-run previews deployment; discovery still creates temporary cluster resources, so the pipeline is not read-only.

See Also

OpenShift

The root Host pipeline accepts --flavor ocp and requires externally installed certified operators. Set explicit clusterConfig[].workerNodes for bounded discovery and inspect generated selectors before live deploy.

nvidiaのその他のスキル

accelerated-computing-cudf
nvidia
NVIDIA公式のNVIDIA cuDF GPUデータフレーム、pandas高速化、dask-cuDF、ETL、結合、groupby、CSV/Parquet入出力、null許容セマンティクスなどに関するガイダンス
accessibility
nvidia
静的解析、ランタイムテスト、ARIAパターン、キーボードナビゲーション、カラーコントラストにわたる統合アクセシビリティ監査ワークフロー。このスキルを使用してください…
accessing-mlflow
nvidia
MLflowに保存された評価結果をクエリおよびブラウズします。ユーザーが呼び出しIDで実行を検索したり、モデル間でメトリクスを比較したり、アーティファクトを取得したい場合に使用します。
add-binding-feature
nvidia
コアランタイムおよび影響を受けるすべてのバインディングにわたって、公開NeMo Relay APIサーフェスを追加または変更します。
add-middleware
nvidia
NeMo Relay ミドルウェアパイプラインに新しいガードレールまたはインターセプトタイプを追加する
aicr-analyzing-snapshots
nvidia
AICRスナップショットYAMLファイルを分析する際、クラスタ状態を確認する際、プロバイダー特性を比較する際、GPU/ネットワークトポロジーの洞察を抽出する際、または…に使用します。
aicr-auditing-docs
nvidia
AICRのMarkdownドキュメントをレビューする際に使用します。重複、乖離、肥大化、欠落をチェックし、プロジェクトの進化に伴ってドキュメントの高い価値を維持します。「audit…」で始まるフレーズでトリガーされます。
aicr-creating-guided-demos
nvidia
インタラクティブなガイド付きデモスクリプト(demos/*.sh)を、ライブ形式またはセルフペース形式で、Frame → Tell → Show → Close パターンに沿って作成します。「デモスクリプト」「ガイド付き…」というトリガーで起動します。