物理AI基础设施搭建与弹性扩展

本条目介绍 物理AI基础设施搭建与弹性扩展 的公开用途。DeepSkill 当前公开目录说明:“当用户需要为本地 MicroK8s 或 Azure AKS 上的合成数据生成工作流设置、扩展、验证或加固 NVIDIA 物理 AI 基础设施时,包括 Kubernetes 集群、推理端点部署、OSMO 部署、工作负载提交就绪性以及基础设施故障恢复。触发关键词:物理 AI 基础设施、弹性扩展、SDG 基础设施、microk8s、azure aks、NVCF 部署、NIM Operator、OSMO 部署、工作流扩展。不触发” 适用场景包括部署发布与上云、系统管理。本页根据公开目录资料和固定版本的上游仓库整理,建议使用前核对该版本的环境、工具、权限及数据处理要求。Skillπ 提供站方用途介绍与原站链接;原始 SKILL.md 和附件仅在对应许可允许时开放。

仓库
openai/plugins

安装方式

先用 Prompt 核对来源,也可切换到安装命令或下载可用的安装包。

安装方式

用 AI 助手安装

复制提示词,让助手先核对固定版本和依赖。

查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "physical-ai-infrastructure-setup-and-resilient-scaling":https://skillpi.com/zh/skills/deepskill-2d1810ddb6aa506f00115ca48d238eb77a4eebfef7b3191d32d29a1a9cb21ae2。安装前核对上游来源和版本:https://github.com/openai/plugins/blob/0722921d5542fc593105c27bd52630babd8b8c2a/plugins/nvidia/skills/physical-ai-infrastructure-setup-and-resilient-scaling/SKILL.md。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。

此命令从 GitHub 来源仓库获取指定技能。运行前请先查看源文件。

运行工具
npx skills add https://github.com/openai/plugins/tree/0722921d5542fc593105c27bd52630babd8b8c2a/plugins/nvidia/skills/physical-ai-infrastructure-setup-and-resilient-scaling --skill physical-ai-infrastructure-setup-and-resilient-scaling
许可协议: —

来源与配置

查看 GitHub 源码

openai/plugins固定提交 0722921d5542fc593105c27bd52630babd8b8c2a

配置方式待核实

请查看原始来源中的适用工具、依赖和权限要求。

安装实测待补充

本条目介绍 物理AI基础设施搭建与弹性扩展 的公开用途。DeepSkill 当前公开目录说明:“当用户需要为本地 MicroK8s 或 Azure AKS 上的合成数据生成工作流设置、扩展、验证或加固 NVIDIA 物理 AI 基础设施时,包括 Kubernetes 集群、推理端点部署、OSMO 部署、工作负载提交就绪性以及基础设施故障恢复。触发关键词:物理 AI 基础设施、弹性扩展、SDG 基础设施、microk8s、azure aks、NVCF 部署、NIM Operator、OSMO 部署、工作流扩展。不触发” 适用场景包括部署发布与上云、系统管理。本页根据公开目录资料和固定版本的上游仓库整理,建议使用前核对该版本的环境、工具、权限及数据处理要求。Skillπ 提供站方用途介绍与原站链接;原始 SKILL.md 和附件仅在对应许可允许时开放。

↓ 0 下载 ↗ 0 分享点击

文件浏览

在原站浏览文件 ↗

原始 SKILL.md

打开原文 ↗
---
name: physical-ai-infrastructure-setup-and-resilient-scaling
description: >-
  Use when the user wants to set up, scale, validate, or harden NVIDIA
  physical AI infrastructure for synthetic data generation workflows across
  local MicroK8s or Azure AKS, including Kubernetes clusters, inference endpoint
  deployment, OSMO deployment, workload submission readiness, and infrastructure
  failure recovery. Trigger keywords: physical ai infrastructure, resilient
  scaling, SDG infrastructure, microk8s, azure aks, NVCF deployment,
  NIM Operator, OSMO deploy, workflow scaling. Don't trigger for: OSMO log
  summarization or workload-only operations unless infrastructure setup, scaling,
  validation, or recovery is requested.
license: Apache-2.0
version: "1.0.0"
tools:
  - Read
  - Shell
compatibility: >-
  Requires the selected component prerequisites, usually kubectl plus either
  MicroK8s or Azure CLI/Terraform, and OSMO or inference credentials for the
  chosen target.
metadata:
  author: NVIDIA Physical AI
  tags:
    - physical-ai
    - infrastructure
    - kubernetes
    - azure
    - microk8s
    - osmo
    - nim-operator
    - scaling
  domain: ai-ml
  languages:
    - bash
    - hcl
    - yaml
---

# Physical AI Infrastructure Setup And Resilient Scaling

Canonical skill for the Physical AI infrastructure stack. Use it to compose cluster,
inference, OSMO, and workload stages into a reproducible Physical AI SDG
environment, then keep the environment observable and recoverable.

## Operating Rules

- Read only the component references needed for the selected target. Do not
  load every component by default.
- Keep the repo as the durable artifact. Fix checked-in config or scripts, then
  rerun. Do not recover a failed install with untracked one-off changes.
- Run mutating cluster, OSMO, Helm, Terraform, or Azure operations through
  checked-in scripts when a script exists. Read-only diagnostics are allowed.
- Stop at the first red gate. Fix the lowest owning layer in this order:
  config, script, then skill guidance.
- Derive values from the environment when possible. Ask only for values that
  cannot be inferred, such as API keys, target choice, or quota tradeoffs.
- Store secrets in `${REPO_ROOT}/.env`. Cluster-derived values such as storage,
  database, Redis, and endpoint names come from Terraform outputs or platform
  queries, not `.env`.
- Preflight means no deployed state: no cluster API, Terraform outputs, Helm
  releases, OSMO pools, or workflow state. Those belong to deploy/verify gates.
- Never print, echo, or paste raw keys into commands, YAML, logs, or
  transcripts. Prefer credential handles, Kubernetes `secretKeyRef`, and
  runtime-only secret injection. Scan raw transcript exports with
  `scripts/scan_transcript_secrets.py` before sharing.
- Use absolute paths. Derive repo root with `git rev-parse --show-toplevel`.

## Component References

Each component lives inside this skill so the stack has one canonical trigger.
Load the component reference only when the selected target needs that slice.

| Concern | Load | Assets |
| --- | --- | --- |
| Stage matrix and old driver notes | `components/driver/reference.md` | None |
| MicroK8s cluster | `components/cluster-microk8s/reference.md` | `components/cluster-microk8s/scripts/`, `components/cluster-microk8s/runtimeclass-nvidia-runc.yaml` |
| Azure AKS cluster | `components/cluster-azure/reference.md` | `components/cluster-azure/scripts/`, `components/cluster-azure/terraform/` |
| NIM Operator inference | `components/inference-nim-operator/reference.md` | `components/inference-nim-operator/scripts/`, `components/inference-nim-operator/nims/` |
| NVCF inference | `components/inference-nvcf/reference.md` | `components/inference-nvcf/scripts/` |
| Azure AI Foundry inference | `components/inference-azure/reference.md` | `components/inference-azure/scripts/` |
| MicroK8s OSMO | `components/osmo-k8s/reference.md` | `components/osmo-k8s/scripts/`, upstream OSMO deploy scripts |
| Azure OSMO | `components/osmo-azure/reference.md` | `components/osmo-azure/scripts/`, upstream OSMO deploy scripts plus Azure TF outputs |
| Azure access setup | `components/azure-access/reference.md` | None |
| OSMO CLI and workflow operations | `components/osmo-cli/reference.md` | `components/osmo-cli/scripts/`, `components/osmo-cli/references/`, `components/osmo-cli/agents/`, `components/osmo-cli/tests/` |
| OpenClaw Azure device login | `components/openclaw-azure-login/reference.md` | None |

### OSMO CLI Support Files

The OSMO CLI component has second-level support files because its command and
workflow surface is large. Load these directly only for the stated case.

| File | Read when |
| --- | --- |
| `components/osmo-cli/agents/workflow-expert.md` | Spawning a workflow-generation or workflow-failure subagent. |
| `components/osmo-cli/agents/logs-reader.md` | Spawning a log summarization subagent for OSMO workflow failures. |
| `components/osmo-cli/references/cli-commands.md` | Exact OSMO CLI flags, payloads, or command syntax are needed. |
| `components/osmo-cli/references/workflow-spec.md` | Workflow YAML schema, credentials, outputs, or provider fields are needed. |
| `components/osmo-cli/references/workflow-patterns.md` | Multi-task, data dependency, Jinja, serial, or parallel workflow design is needed. |
| `components/osmo-cli/references/advanced-patterns.md` | Checkpointing, retry/exit behavior, or node exclusion is needed. |
| `components/osmo-cli/tests/orchestrator-runtime-failure.md` | Validating or debugging the OSMO orchestration review pattern. |

## Target Selection

Pick exactly one option per stage. Stage 2 follows stage 1.

1. Kubernetes: `MicroK8s` or `Azure`
2. OSMO: `MicroK8s OSMO` when Kubernetes is MicroK8s, `Azure OSMO` when
   Kubernetes is Azure
3. Inference: `NIM Operator`, `NVCF`, `Azure AI Foundry`, or `None`
4. Workload: Video Data Augmentation, Defect Image Generation, NuRec Carline
   Adaptation, NRE, NCore, Asset Harvester, or custom workflow YAML

Reject invalid combinations before provisioning:

| Cluster | NIM Operator | NVCF | Azure AI Foundry |
| --- | --- | --- | --- |
| MicroK8s | yes | yes | no, Foundry requires Azure identities |
| Azure | yes | yes | yes |

For OpenClaw or any chat-only environment that cannot open a browser, read
`components/openclaw-azure-login/reference.md` before Azure prerequisites.
For any Azure target, read `components/azure-access/reference.md` before Azure
component preflights.

## Setup Flow

1. Confirm target choices and workload compute requirements.
2. Load the selected component references.
3. Resolve prerequisites up front, including API keys, Azure access, caller
   CIDR, GPU quota, storage class, and OSMO login requirements.
4. Run `scripts/preflight.sh` for every selected infrastructure component plus
   any OSMO CLI/workload preflight before provisioning; build the implementation
   plan from the results and stop on red preflight.
5. Deploy Kubernetes first. Nothing else starts until the cluster gate is green.
6. Deploy OSMO and inference after Kubernetes. These can proceed in parallel
   once the cluster exists, but workload submission waits for both selected
   gates.
7. Submit the workload only after OSMO, storage credentials, compute pool, and
   selected inference endpoints are verified. For VDA, this includes
   `preflight_credentials.sh`, `pre_submit_guard.py` with resolved `--set`
   values, non-empty model-cache prefixes, and workflow-namespace endpoint
   smoke checks.
8. Monitor through completion. On failed workflow state, inspect events and logs
   from `components/osmo-cli/reference.md`; do not resubmit blindly.

## Inference Discovery

Avoid over-deploying expensive endpoints.

1. Scan the chosen workflow spec and default values for endpoint references:
   `*.osmo-nims.svc.cluster.local`, `api.nvcf.nvidia.com/*`,
   `*.inference.ai.azure.com`, or `*.cognitiveservices.azure.com`.
2. Map each reference to the selected backend:
   - NIM Operator: service name must match a directory under
     `components/inference-nim-operator/nims/`.
   - NVCF: function URL or function ID must be supplied by the environment.
   - Azure AI Foundry: endpoint name must be deployed through
     `components/inference-azure/scripts/install.sh`.
3. If the workflow needs a capability the selected backend lacks, stop and
   report the mismatch. Do not silently substitute another model.

## Verification Gates

Each stage has its own Verify section in the component reference. These gates
are mandatory:

| Stage | Gate |
| --- | --- |
| Kubernetes | Cluster API reachable, nodes Ready, GPU capacity advertised for GPU paths, and CPU+NVCF paths have `runtimeclass/nvidia` mapped to `runc`. |
| Inference | Every endpoint referenced by the workload is reachable. NIM readiness uses `/v1/health/ready`; NVCF and Foundry still need task-specific authenticated checks. |
| OSMO | OSMO pods Ready, pool ONLINE, port-forward watchdogs alive, storage credentials configured, and verify-hello workflow COMPLETED. |
| Workload | Selected workload pre-submit guards pass before submit. `osmo workflow query <id>` reports `COMPLETED` and every task is green. Failed terminal states require events and logs before retry. |

## Resilient Scaling

- Size the cluster from workload needs before provisioning. For Azure, check CPU
  and GPU quota for the selected VM families before `terraform apply`.
- For NIM Operator, deploy only the NIMServices referenced by the workload.
  Each service pins GPU and model-cache storage for the lifetime of the cluster.
- Keep OSMO storage URL schemes aligned with the active backend. Local MicroK8s
  uses MinIO, Azure uses Blob-backed configuration.
- Treat Pending, Unknown, ImagePullBackOff, unbound PVCs, or 0 Ready replicas as
  layer failures. Investigate scheduling, storage, image credentials, and
  adjacent platform state before retrying the same command.
- For long deploys or workflow watches, provide heartbeat updates with current
  state, elapsed time, last useful observation, and next check.

## Workload Routing

- Video Data Augmentation: use `skills/physical-ai-video-data-augmentation/SKILL.md`.
- Defect Image Generation: use `skills/physical-ai-defect-image-generation/SKILL.md`.
- NuRec carline adaptation: use `skills/carline-adaptation/SKILL.md`.
- NRE, NCore, and Asset Harvester live in the canonical NuRec catalog listed in
  `skills/INDEX.md`.
- Custom workload: submit the provided workflow YAML through OSMO after checking
  resource requests, image credentials, data credentials, and inference URLs.

## Evaluation Prompts And Results

- Positive trigger: "Set up resilient Physical AI infrastructure for VDA on
  Azure AKS with NIM Operator."
  Expected: use this skill.
- Negative trigger: "Summarize recent OSMO workflow logs for this workflow ID."
  Expected: do not use this infrastructure setup skill unless the request also
  involves setup, scaling, validation, or recovery of the infrastructure stack.

Latest static review: 2026-05-26, description keywords match the expected
routes above.

当前收录版本

1.0.0

核对来源版本 ↗

质量评测

满分 100。前四项来自 DeepSkill 收录的质量报告。

场景价值95/100
评分依据

直接解决用户在本地 MicroK8s 或 Azure AKS 上为合成数据生成工作流设置、扩展、验证或加固 NVIDIA 物理 AI 基础设施的核心任务痛点

触发精准90/100
评分依据

触发词精准完整,覆盖多种变体,边界清晰

结构规范95/100
评分依据

Phase/步骤清晰,有出口条件,含端到端示例

执行可靠90/100
评分依据

工具来源明确,参数正确,覆盖主要异常,不可逆操作有确认机制

证据可验 (前四项均值)93/100
计算方式

取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。

权限与使用前检查

根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。

本站展示提示不会授予权限。涉及文件改动、密钥、外部发送或费用时,仍由你使用的工具按需确认。

安全评级与访问范围

risk · 静态证据核验,不代表运行安全保证。

使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。

来源与使用声明 SkillPi 的部分技能资料来自公开来源或创作者提交。第三方内容的权利归各自权利人所有。安装或运行前,请查看原站的许可、权限要求和使用风险。

来源与使用

请按详情页的作者、原始来源和许可证核对使用条件,运行前检查技能需要的权限。目录收录不等于已验证安装或安全性。