kars-deployment
Skill44 starsChanged 6 months agoMITView on GitHub
Kars deployment and infrastructure skill — how to deploy, build images, manage AKS, and troubleshoot.
In this repository3 other files it gives its agents.
- .github/copilot-instructions.mdCopilot instructions
- docs/llms.txtllms.txt
- agt-e2e-encryptionSkill
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 3 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 43
DO NOT set image env vars manually — use defaults
- Very specific: line 56
Pod stuck Pending: Check node pool capacity (kubectl describe pod)
- Very specific: line 58
Controller not reconciling: Check CRD (kubectl get karssandbox -A) and controller logs
- Distinctive: line 59
Relay auth fails: Check the AGT relay token secret and relay logs
- Distinctive: line 60
Registry 401 on prekey upload: Check AGT registry auth configuration and pod identity
- Very specific: line 61
Old image cached on AKS: Use imagePullPolicy: Always for :latest tags
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Kars Deployment & Infrastructure
Quick Start
# Login to Azure and ACR
az login
az acr login --name karsacr
# Build all images
make build-all # or manually:
docker build --platform linux/amd64 -f sandbox-images/openclaw/Dockerfile -t karsacr.azurecr.io/openclaw-sandbox:latest .
docker push karsacr.azurecr.io/openclaw-sandbox:latest
# Deploy to AKS
kars up --resource-group <rg> --isolation confidentialImage Registry (ACR: karsacr)
| Image | Source | Purpose |
openclaw-sandbox:latest | sandbox-images/openclaw/Dockerfile | Agent container (OpenClaw + Kars mesh plugin) |
kars-inference-router:latest | inference-router/Dockerfile | Per-pod proxy (AOAI, relay/registry, native AGT governance) |
kars-controller:latest | controller/Dockerfile | K8s controller (CRD reconciler) |
agentmesh-relay-agt:latest | Microsoft AGT AgentMesh image | WebSocket relay server |
agentmesh-registry-agt:latest | Microsoft AGT AgentMesh image | Agent discovery + prekey storage |
AKS Namespaces
| Namespace | Purpose |
kars-system | Controller + CRDs |
agentmesh | Relay + Registry + PostgreSQL |
kars-foundry-test | Parent sandbox (persistent) |
kars-<name> | Spawned sub-agent sandboxes (ephemeral) |
Controller
- Watches
KarsSandboxCRDs inkars-system - Creates namespace, deployment, service, networkpolicy for each sandbox
- Defaults:
SANDBOX_IMAGE=openclaw-sandbox:latest,INFERENCE_ROUTER_IMAGE=inference-router:latest - DO NOT set image env vars manually — use defaults
AgentMesh Infrastructure
# Deploy Microsoft AGT AgentMesh (relay + registry + postgres)
kubectl apply -f deploy/agentmesh-agt.yaml
# Verify
kubectl get pods -n agentmesh
# Should show: postgres, registry, relay — all RunningTroubleshooting
- Pod stuck Pending: Check node pool capacity (
kubectl describe pod) - ImagePullBackOff: ACR auth issue (
az acr login --name karsacr) - Controller not reconciling: Check CRD (
kubectl get karssandbox -A) and controller logs - Relay auth fails: Check the AGT relay token secret and relay logs
- Registry 401 on prekey upload: Check AGT registry auth configuration and pod identity
- Old image cached on AKS: Use
imagePullPolicy: Alwaysfor:latesttags
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

