π‘ kagent AI Kubernetes Agent Archi & Autonomous β Executive Summary
Technical architectural analysis, practical configuration manifests, and deployment instructions for kagent AI Kubernetes Agent Archi & Autonomous.
Installation
Guide
Prompt libraries
Global prompt settings
- Create prompt
bash
cat <<EOF | kubectl apply -f -
apiVersion: v1
data:
always-output: All text output is translated into Korean by default.
kind: ConfigMap
metadata:
labels:
kagent.dev/prompt-library: "true"
name: kagent-language-rule-prompt
namespace: kagent
EOF
- Insert prompt into all agents
bash
for agent in $(kubectl get agents -n kagent -o name); do
kubectl patch $agent -n kagent --type=json -p='[
{
"op": "add",
"path": "/spec/declarative/promptTemplate/dataSources/-",
"value": {
"alias": "lang",
"kind": "ConfigMap",
"name": "kagent-language-rule-prompt"
}
}
]' 2>/dev/null
done
Features
Linking Kagent of Local LLM (Ollama) and Exterenal Cluster (for Test)
References and Guidelines (NOTE)
Measures to link kagent deployed in an external k8s cluster to ollama (local LLM)
Example (vpn, kagent-dashboard, ollama, cloudflared)
- Setup
- Setting to allow external access
bash
# 11434 ν¬νΈλ₯Ό μ°κ³ μλ νλ‘μΈμ€ μ£½μ΄κΈ°
sudo kill -9 $(lsof -t -i:11434)
cat <<EOF >> ~/.zshrc
export OLLAMA_HOST="0.0.0.0"
export OLLAMA_ORIGINS="*"
EOF
source ~/.zshrc
ollama serve
# νμΈ
# netstat -anp tcp | grep 11434
- Give temporary domain to Ollama ( )
`bash
cloudflared tunnel --url localhost:11434
# domain 볡μ
2026-07-29T06:41:59Z INF +βββββββββββββββββββββββββββββββ+
2026-07-29T06:41:59Z INF | Your quick Tunnel has been created! Visit it at (it may take some time to be reachable): |
2026-07-29T06:41:59Z INF | https://skirt-realtor-heat-pressure.trycloudflare.com |
2026-07-29T06:41:59Z INF +βββββββββββββββββββββββββββββββ+
`
`
3. kagent μ€μΉ (kubeconfig-contextμ ν΄λ¬μ€ν°μ helmλ°°ν¬λ¨)
bash
export KAGENT_DEFAULT_MODEL_PROVIDER=ollama
kagent install βprofile demo
bash
4. default modelconfig μμ
bash
kubectl edit modelconfig default-model-config -n kagent
yaml
...
spec:
model: qwen3:30b # λͺ¨λΈ μ§μ
ollama:
host: skirt-realtor-heat-pressure.trycloudflare.com # domain μ§μ
options:
num_ctx: "64000"
provider: Ollama
...
`
- Run dashboard
bash
kagent dashboard




Leave a Reply