kagent AI Kubernetes Agent Archi & Autonomous

πŸ’‘ 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)
  1. 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
  1. 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
   ...
   `
  1. Run dashboard
bash
kagent dashboard

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *