Kubernetes AI Operator & Workflow Architecture
Welcome to the technical documentation portal for the Tuluat Kubernetes AI Operator & Workflow Engine.
🏛️ System Overview
The operator extends Kubernetes with declarative AI resources (LlmProvider, AiAgent, AiWorkflow, WorkflowSession, McpServer). It orchestrates multi-agent workflows using an embedded Graph State Machine Engine and persists session states, conversation history, and vector embeddings in PostgreSQL (with pgvector).
graph TD
subgraph Kubernetes Control Plane
CRD1[LlmProvider CRD]
CRD2[AiAgent CRD]
CRD3[AiWorkflow CRD]
CRD4[WorkflowSession CRD]
CRD5[McpServer CRD]
end
subgraph AI Operator Service Pod
Rec[JOSDK Reconcilers]
API[REST & WebSocket API]
ExecSvc[WorkflowExecutionService]
Engine[GraphStateMachineEngine]
AgentExec[AgentExecutionService]
Guardrails[Safety Guardrails Engine]
RagSvc[RAG & Object Storage]
end
subgraph Persistence Layer
Postgres[(PostgreSQL DB + pgvector)]
MinIO[(MinIO S3 Storage)]
end
CRD1 --> Rec
CRD2 --> Rec
CRD3 --> Rec
CRD4 --> Rec
CRD5 --> Rec
API --> ExecSvc
Rec --> ExecSvc
ExecSvc --> Engine
Engine --> AgentExec
AgentExec --> Guardrails
AgentExec --> RagSvc
Engine --> Postgres
RagSvc --> Postgres
RagSvc --> MinIO
📚 Documentation Navigation Map
Explore the documentation across core categories:
- Features & Capabilities
- LLM Providers: Provider management, routing, fallbacks, token cost tracking.
- Agents & Tools: Autonomous AI agents, prompt templates, dynamic tool registry.
- Workflows & Sessions: Declarative DAG workflows, state machines, execution sessions.
- Safety Guardrails: PII masking, prompt injection defense, JSON schema validation.
- MCP & A2A Protocols: Model Context Protocol tools and Agent-to-Agent communication.
-
RAG & Memory: Short/long memory, pgvector similarity search, MinIO S3 storage.
- Overview: High-level system context, DAG execution, pod crash recovery.
- Low-Level Design: Java class models, JPA entities, database schema DDL.
- Safety & Guardrails: PII masking, prompt injection defense, output validation, MCP client registry, A2A protocol.
- HITL Approval System: Human-in-the-Loop workflow signals and approval inbox.
-
RAG Subsystem: Document chunking, pgvector search, MinIO S3 object storage.
-
Specifications and complete sample YAML manifests for
LlmProvider,AiAgent,AiWorkflow,WorkflowSession, andMcpServer. - Overview: 7-module Maven Reactor architecture, step-by-step layer breakdown, responsibilities.
-
Dependencies: Inventory of global BOMs and module-by-module Maven dependencies.
-
Unit testing, ArchUnit architecture rules, Spotless/Checkstyle checks, and KinD E2E acceptance test suite.
-
Local setup, KinD cluster creation, Helm deployment, port-forwarding guide, REST API curl examples, Web GUI Control Portal.
- Design decisions ADR 001 through ADR 011.