infrastructure-storage
Configure and troubleshoot SkyPilot clouds, Kubernetes, Slurm, SSH node pools, resources, GPUs, workspaces, storage, and volumes.
- License 许可
- Apache-2.0
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- infrastructure-storage
- license
- Apache 2.0
- metadata
- { "disco-role": "operating" }
- description
- Configure and troubleshoot SkyPilot clouds, Kubernetes, Slurm, SSH node pools, resources, GPUs, workspaces, storage, and volumes.
- disable-model-invocation
- true
02 资源文件 3
- 参考文档references/infrastructure-reference.md10.9 KB
- 参考文档references/troubleshooting.md10.4 KB
- 脚本scripts/resource_checklist.py11.7 KB
03 SKILL.md 正文
Infrastructure And Storage
Use this sub-skill when the user needs to configure, select, or troubleshoot SkyPilot infrastructure and data surfaces: cloud credentials, Kubernetes contexts, Slurm clusters and partitions, SSH node pools, workspaces, GPU/resource availability, sky check, sky gpus, object-store storage, file mounts, and volumes.
Start Here
- Read references/infrastructure-reference.md for supported infrastructure forms, resource-selection rules, GPU/catalog commands, workspace behavior, object-store storage, and volumes.
- Use scripts/resource_checklist.py to print a no-credential preflight checklist for a provider, Kubernetes, Slurm, SSH node pool, GPU, or storage task.
- Read references/troubleshooting.md for disabled clouds, missing credentials, quota/capacity failures, Kubernetes context issues, Slurm partitions, SSH pools, storage mount errors, volume/PVC failures, and GPU catalog interpretation.
Owns
- Infrastructure selection with
resources.infra,--infra,sky check,sky gpus list,sky gpus label, and provider setup triage. - Cloud/resource concepts: cloud, region, zone, accelerator, CPU, memory, instance type, spot, disk, local disk, ephemeral storage, disk tier, network tier, and labels.
- Kubernetes usage:
kubernetes,k8s,k8s/<context>, kube contexts, namespaces, pod config, GPU labels, service accounts, ports, priorities, autoscaler hints, PVC-backed volumes, and multi-context routing. - Slurm usage:
slurm,slurm/<cluster>,slurm/<cluster>/<partition>, partition/GPU/resource mapping, Pyxis/FUSE support, and scheduler-specific symptoms. - SSH node pools:
ssh,ssh/<pool>, node-pool setup expectations, host volumes, and Kubernetes-compatible implementation details. - Data surfaces:
workdir,file_mounts, SkyPilotStorageobjects,MOUNT,COPY,MOUNT_CACHED, cloud object-store backends,sky storage,sky volumes, persistent volumes, ephemeral volumes, and mount-mode troubleshooting. - Safe credential triage that explains which command to run locally without asking the user to paste secrets or credentials.
Route Elsewhere
- Task YAML syntax,
resources,file_mounts,volumes,envs, andsecretsfield construction belongs to ../task-yaml/SKILL.md. - Interactive cluster launch, status, logs, queue, stop/start/down, autostop, and cleanup belongs to ../cluster-operations/SKILL.md.
- Managed jobs, recovery, queues, pools, and job logs belongs to ../managed-jobs/SKILL.md.
- SkyServe service YAML operations, replicas, readiness, updates, and serving logs belongs to ../serving/SKILL.md.
- Python SDK request IDs, API server login/status, dashboard, and remote server compatibility belongs to ../sdk-api-server/SKILL.md.
- Repository source changes, tests, formatting, and contribution workflow belongs to ../repo-development/SKILL.md.
Safe Preflight
Run the bundled checklist helper to plan what the user should verify locally:
python sub-skills/infrastructure-storage/scripts/resource_checklist.py \
--cloud k8s --gpu H100:1 --storage volume --include-triage
The helper prints checks and SkyPilot commands only. It does not import SkyPilot, read credentials, inspect kubeconfig, contact cloud APIs, or mutate infrastructure.
Operating Principles
- Prefer requirements over provider pins: ask for accelerator, CPU, memory, disk, and storage intent first; pin
--infra, region, zone, instance type, Kubernetes context, Slurm partition, or SSH pool only when the user has a concrete placement or compliance requirement. - Use
sky check <infra>for credential/config readiness,sky gpus listfor catalog and availability, andsky launch --dryrunfor optimizer planning; do not parse pricing tables manually to choose the cheapest region. - Separate authentication from capacity: credential and disabled-cloud errors are fixed with provider setup, while quota/capacity/stock errors are fixed by changing resource requirements, failover options, region/zone pins, or cloud choices.
- Treat object-store storage,
file_mounts, and volumes as different tools: object stores are cross-region/cloud data surfaces, file mounts sync paths into a cluster, and volumes are high-performance provider/Kubernetes/RunPod-backed storage with lifecycle rules. - Never ask the user to paste secrets, tokens, kubeconfigs, SSH private keys, or full cloud credential files; ask them to run local checks and share redacted error categories instead.
04 同仓库更多 Skills
passnet-triton-opt
Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.
passnet-solve
END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.
passnet-skill
PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.
passnet-pattern-fusion
Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.
passnet-orchestrate
Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.
passnet-feedback
Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).