Robertjam954/multimodal_rag_application / .claude/skills/airunway-aks-setup
airunway-aks-setup
VerifiedSet up AI Runway on AKS — from bare cluster to running model. Covers cluster verification, controller install, GPU assessment, provider setup, and first deployment. WHEN: "setup AI Runway", "onboard AKS cluster", "install AI Runway", "airunway setup", "deploy model to AKS", "GPU inference on AKS", "KAITO setup on AKS", "run LLM on AKS", "vLLM on AKS", "set up model serving on AKS", "AI Runway controller".
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 4.0 KB |
| references/gpu-profiles.md | markdown | 2.5 KB |
| references/model-sizing.md | markdown | 1.8 KB |
| references/powershell-notes.md | markdown | 3.1 KB |
| references/steps/step-1-verify.md | markdown | 1.9 KB |
| references/steps/step-2-controller.md | markdown | 1.0 KB |
| references/steps/step-3-gpu.md | markdown | 834 B |
| references/steps/step-4-provider.md | markdown | 2.0 KB |
| references/steps/step-5-deploy.md | markdown | 3.6 KB |
| references/steps/step-6-summary.md | markdown | 1.7 KB |
| references/troubleshooting.md | markdown | 1.5 KB |
references/powershell-notes.md
View on GitHub# PowerShell Command Variants
This reference provides PowerShell equivalents for commands in steps 1, 4, 5, and 6 that use Bash-specific syntax.
## Prerequisite Check (Step 1)
```powershell
@('kubectl', 'make', 'curl') | ForEach-Object {
if (Get-Command $_ -ErrorAction SilentlyContinue) {
Write-Host "✓ $_ found"
} else {
Write-Host "✗ $_ NOT FOUND — install before continuing"
}
}
```
## GPU Detection (Step 1)
```powershell
# Extract GPU count and model per node (requires NVIDIA device plugin labels)
# PowerShell does not need the bash single-quote escaping — pass the jsonpath directly
kubectl get nodes -o jsonpath='{range .items[*]}{.metadata.name}{"\t"}{.status.allocatable.nvidia\.com/gpu}{"\t"}{.metadata.labels.nvidia\.com/gpu\.product}{"\n"}{end}'
```
> **Note:** If the output shows empty GPU fields, use the fallback:
```powershell
kubectl describe nodes | Select-String -Pattern "nvidia" -Context 0,2
```
## Provider Check (Step 4)
```powershell
# Check if providers are already registered (errors indicate CRD not yet installed — expected on a fresh cluster)
kubectl get inferenceproviderconfigs --all-namespaces
```
## Provider Discovery (Step 4)
```powershell
# List available providers
Get-ChildItem providers/
# Check default image for a provider
Get-Content providers/<provider>/Makefile | Select-String -Pattern 'IMG\s*\?='
```
## HuggingFace Token Secret (Step 5)
```powershell
$token = Read-Host -Prompt "HuggingFace token" -AsSecureString
$bstr = [System.Runtime.InteropServices.Marshal]::SecureStringToBSTR($token)
try {
[System.Runtime.InteropServices.Marshal]::PtrToStringAuto($bstr) |
Set-Content -NoNewline -Encoding UTF8 -Path "$env:TEMP\hf-token.txt"
} finally {
[System.Runtime.InteropServices.Marshal]::ZeroFreeBSTR($bstr)
}
kubectl create secret generic hf-token `
--from-file=token="$env:TEMP\hf-token.txt" `
-n <namespace> `
--dry-run=client -o yaml | kubectl apply -f -
Remove-Item -Force "$env:TEMP\hf-token.txt"
```
## ModelDeployment CR (Step 5)
**For gated models (Llama etc.):**
```powershell
$manifest = @"
apiVersion: airunway.ai/v1alpha1
kind: ModelDeployment
metadata:
name: <model-name>
namespace: <namespace>
spec:
model:
id: <model-id>
huggingFaceTokenSecretRef:
name: hf-token
key: token
provider:
name: <provider-name>
"@
$manifest | kubectl apply -f -
```
**For non-gated models (Phi-3, Gemma etc.):**
```powershell
$manifest = @"
apiVersion: airunway.ai/v1alpha1
kind: ModelDeployment
metadata:
name: <model-name>
namespace: <namespace>
spec:
model:
id: <model-id>
provider:
name: <provider-name>
"@
$manifest | kubectl apply -f -
```
## Smoke Test (Step 6)
```powershell
$endpoint = kubectl get modeldeployment <model-name> -n <namespace> -o jsonpath='{.status.endpoint}'
if ([string]::IsNullOrEmpty($endpoint)) {
Write-Host "Endpoint not yet available — model may still be starting"
} else {
$body = @{
model = "<model-id>"
messages = @(@{ role = "user"; content = "Hello!" })
} | ConvertTo-Json -Depth 3
Invoke-RestMethod -Method Post -Uri "$endpoint/v1/chat/completions" `
-ContentType "application/json" -Body $body
}
```
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| writing-skillsobra/superpowersUse when creating new skills, editing existing skills, or verifying skills work before deployment | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| xlsxanthropics/skillsUse this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing .xlsx, .xlsm, .xltx, .csv, or .tsv file (e.g., adding columns, computing formulas, formatting, charting, cleaning messy data); create a new spreadsheet from scratch or from other data sources; or convert between tabular file formats. Trigger especially when the user references a spreadsheet file by name or path — even casually (like "the xlsx in my downloads") — and wants something done to it or produced from it. Also trigger for cleaning or restructuring messy tabular data files (malformed rows, misplaced headers, junk data) into proper spreadsheets. The deliverable must be a spreadsheet file. Do NOT trigger when the primary deliverable is a Word document, HTML report, standalone Python script, database pipeline, or Google Sheets API integration, even if tabular data is involved. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| shipping-and-launchaddyosmani/agent-skillsPrepares production launches. Use when preparing to deploy to production, or when asking what needs to be in place before shipping. Use when you need a pre-launch checklist, when setting up monitoring, when planning a staged rollout, or when you need a rollback strategy. | Stars: 119k | Updated | Claude CodeCodex | Verified | Install |
| childhoodthedotmack/claude-memBabysit a shipped release after merge, publication, or deployment. Verify published packages, production behavior, installed plugins, and late CI or user reports until the observation window is clean; use babysit for PR readiness before release. | Stars: 118k | Updated | Claude CodeCodex | Verified | Install |