deploy-k8s-gpu-cluster

A deployment skill for building a Kubernetes cluster—a system that runs containerized applications—on servers with NVIDIA GPUs, using DeepOps automation.

In plain words
What is it for?
Setting up or rebuilding Kubernetes on Ubuntu, RHEL, or Rocky Linux GPU servers, then validating that pods can be scheduled with CUDA, NVIDIA's GPU computing platform.
Why use it?
It provides a documented process for preparing hosts, configuring the cluster, installing GPU support, and checking that GPU workloads can actually run.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/nvidia/deepops/deploy-k8s-gpu-cluster
Any agent
npx skills add NVIDIA/deepops --skill deploy-k8s-gpu-cluster
Clone the repo
git clone --depth 1 https://github.com/NVIDIA/deepops

Made for: Claude Code, Codex.

Per session 47 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 692 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00047 $0.00692
Opus 5 $0.00023 $0.00346
Sonnet 5 $0.00009 $0.00138
Haiku 4.5 $0.00005 $0.00069

Measured 3d ago against content hash ba59b7e05365, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

deploy-k8s-gpu-cluster scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/deploy-k8s-gpu-cluster/SKILL.md · 73 lines

How it starts

The opening of the file, as written. The whole thing — 73 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Deploy a Kubernetes GPU cluster

Preconditions

  • Ubuntu 22.04/24.04 or RHEL/Rocky 8/9 hosts you may fully manage (driver installs may reboot them; no active users or workloads).
  • SSH access from the provisioning machine to every host as a sudo-capable user.
  • submodules/kubespray initialized — Kubernetes playbooks fail on missing kubespray_defaults role imports without it.
  • Run everything from the repository root.

Procedure

  1. Prepare the environment and verify it:

    git submodule update --init --recursive
    ./scripts/setup.sh
    cp -r config.example config
    
  2. Edit config/inventory: control plane nodes under [kube_control_plane] and [etcd], workers under [kube_node] (a single machine can hold all three roles).

  3. Preflight — must pass before deploying:

    python3 scripts/validation/deepops_doctor.py --remote --json
    
  4. Deploy:

    ansible-playbook -l k8s_cluster playbooks/k8s-cluster.yml
    

    This runs Kubespray and installs the NVIDIA GPU Operator. Expect roughly 45–90 minutes on a first run.

  5. Validate — the success signal is this, not the play recap:

    python3 scripts/validation/validate_k8s.py --json --cuda-smoke
    

    Require "ok": true with nodes_ready == nodes_total, gpus_allocatable > 0, and cuda_smoke_ok: true.

Failure branches

  • Playbook fails on a transient error: rerun the same playbook; Kubespray is rerun-safe. A converged rerun reports changed=0.
  • Syntax/import error mentioning kubespray_defaults: the submodule is not initialized; run git submodule update --init --recursive.
  • gpus_allocatable: 0: the GPU Operator stack is not ready. Check kubectl get pods -A | grep -i nvidia — the driver DaemonSet can take 10+ minutes on first deploy; if pods are crash-looping, follow skills/diagnose-driver-install/.
  • CUDA smoke pod stuck Pending: kubectl -n deepops-validate describe pod deepops-validate-cuda — usually no allocatable GPU (see above) or an image pull problem on airgapped networks (use --cuda-image to point at a mirrored image).
  • Single-node clusters: control plane taints are handled by the playbook for the single-node case; if pods stay Pending on a multi-role node, check taints with kubectl describe node <name> | grep -i taint.

Read the full file on GitHub · 73 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 73 lines · 47 tokens per session scan A ba59b7e05365

Subscribe to this mod's changes

deploy-k8s-gpu-cluster is a skill published in the GitHub repository NVIDIA/deepops (1,471 stars, last pushed today), licensed BSD-3-Clause. It adds 47 tokens to every session and 692 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

cloud-run-basics

Manages Cloud Run services, jobs, and worker pools. Use when you need to deploy applications responding to HTTP requests (services), run event-triggered or scheduled tasks (jobs), or handle always-on pull-based background processing (worker pools).

google/skills · 53 tokens

openshell-cli

Guide agents through using the OpenShell CLI (openshell) for sandbox management, gateway registration, provider configuration and refresh, policy iteration, settings, service exposure, BYOC workflows, and inference routing. Covers basic through advanced multi-step workflows. Trigger keywords - openshell, sandbox…

NVIDIA/OpenShell · 127 tokens

cloud-k8s

Use for authorized cloud, container, and Kubernetes security assessment including metadata SSRF, IAM misconfig, container escape paths, and cluster RBAC review.

zhaoxuya520/reverse-skill · 35 tokens

kubernetes-specialist

Use when deploying or managing Kubernetes workloads. Invoke to create deployment manifests, configure pod security policies, set up service accounts, define network isolation rules, debug pod crashes, analyze resource limits, inspect container logs, or right-size workloads. Use for Helm charts, RBAC policies…

Jeffallan/claude-skills · 79 tokens

langbot-deploy

Deploy and configure a LangBot instance — Docker / Docker Compose, Kubernetes, the config.yaml model, the Box sandbox runtime, the plugin runtime, and the global API key. Use when installing, deploying, upgrading, or configuring LangBot in production or self-hosted environments. Triggers on "deploy langbot", "langbot…

langbot-app/LangBot · 104 tokens

doca-container-deployment

Use this skill when the user is hands-on deploying an in-bundle DOCA service container (Argus, DMS, Firefly, or UROM service) on a BlueField — kubelet standalone watching a static-pod manifests directory, YAML pod-spec drop, kubelet status / ENTRYPOINT logs / per-service liveness, smoke-before-bulk, and the layered…

NVIDIA/skills · 234 tokens