HarnessesAgents 🇷🇺 27.07.2026 03:04

Reference Architecture for Enterprise AI Harness on Kubernetes: Four Layers for Secure Agent Deployment in Production

AnthropicAnthropic LiteLLMLiteLLM
The article proposes a reference architecture for self-hosted Enterprise AI Harness on Kubernetes, consisting of four functional layers: Input, Agent Loop, Execution, and Identity, Policy & Audit. It aims to address the complexity of deploying AI agents in production by defining clear boundaries between layers, enabling modular replacement of components. The architecture draws from Anthropic's model, CNCF projects, and the MCP ecosystem, emphasizing security, multi-tenancy, and Kubernetes-native deployment.
The article presents a reference architecture for building a self-hosted Enterprise AI Harness on Kubernetes, structured into four layers: Input, Agent Loop, Execution, and Identity, Policy & Audit. The Input layer separates user, agent, and event traffic using tools like Traefik and n8n webhooks. The Agent Loop (ReAct) layer manages stateful agent sessions with memory, delegation, and human-in-the-loop (HITL) using components like kagent and LangGraph. The Execution layer controls access to external resources (MCP tools, workflows, LLMs) via FastMCP, n8n, and LiteLLM. The Identity, Policy & Audit layer provides cross-cutting authentication, authorization, and auditing through Keycloak, agentgateway, Vault/OpenBao, and OTEL/Grafana. The architecture emphasizes security boundaries, multi-tenancy (via RLS, namespaces, network policies), and deployment context (Kubernetes, Helm, NetworkPolicy). Skills are implemented as pod-local capability injections (OCI images with SKILL.md), while tools are network-accessible. The article illustrates the workflow with an engineering task example, showing how identity flows from input through agentgateway to execution, with audit trails throughout. The author notes that this is a working reference model, not a product, and invites discussion on essential layers.
Сокращения
MCP = Model Context Protocol — Протокол контекста модели
A2A = Agent-to-Agent — От агента к агенту
HITL = Human-in-the-Loop — Человек в цикле
SSO = Single Sign-On — Единый вход
JWT = JSON Web Token — JSON-веб-токен
RBAC = Role-Based Access Control — Управление доступом на основе ролей
RLS = Row-Level Security — Безопасность на уровне строк
OCI = Open Container Initiative — Инициатива открытых контейнеров
CRD = Custom Resource Definition — Определение пользовательского ресурса
OIDC = OpenID Connect — OpenID Connect
CEL = Common Expression Language — Общий язык выражений
PKI = Public Key Infrastructure — Инфраструктура открытых ключей
OTEL = OpenTelemetry — OpenTelemetry
TTL = Time to Live — Время жизни
Source: Habr — хаб NLP — original
Our earlier posts on this topic ↓
Fresh news