AgentRuntime CRD Reference

The AgentRuntime custom resource defines an AI agent deployment in Kubernetes.

API Version

apiVersion: omnia.altairalabs.ai/v1alpha1
kind: AgentRuntime

Spec Fields

replicas

Number of agent pod replicas to run.

FieldTypeDefaultRequired
replicasinteger1No
spec:
  replicas: 3

provider

LLM provider configuration.

FieldTypeRequired
provider.namestringYes
provider.modelstringYes
provider.apiKeySecretRef.namestringYes
provider.apiKeySecretRef.keystringYes
spec:
  provider:
    name: openai
    model: gpt-4
    apiKeySecretRef:
      name: llm-credentials
      key: api-key

Supported providers:

promptPackRef

Reference to the PromptPack resource.

FieldTypeRequired
promptPackRef.namestringYes
promptPackRef.namespacestringNo
spec:
  promptPackRef:
    name: my-prompts
    namespace: prompts  # Optional, defaults to AgentRuntime namespace

toolRegistryRef

Optional reference to a ToolRegistry resource.

FieldTypeRequired
toolRegistryRef.namestringNo
toolRegistryRef.namespacestringNo
spec:
  toolRegistryRef:
    name: agent-tools

facade

WebSocket facade configuration.

FieldTypeDefaultRequired
facade.typestringwebsocketNo
facade.portinteger8080No
spec:
  facade:
    type: websocket
    port: 8080

session

Session storage configuration.

FieldTypeDefaultRequired
session.typestringmemoryNo
session.ttlduration1hNo
session.storeRef.namestring-No
session.storeRef.keystring-No
spec:
  session:
    type: redis
    ttl: 24h
    storeRef:
      name: redis-credentials
      key: url

resources

Container resource requirements.

spec:
  resources:
    requests:
      cpu: "500m"
      memory: "256Mi"
    limits:
      cpu: "1000m"
      memory: "512Mi"

env

Additional environment variables.

spec:
  env:
    - name: LOG_LEVEL
      value: debug
    - name: API_TIMEOUT
      valueFrom:
        configMapKeyRef:
          name: agent-config
          key: timeout

Status Fields

phase

Current phase of the AgentRuntime.

ValueDescription
PendingResource created, waiting for dependencies
RunningAgent pods are running and ready
FailedDeployment failed

replicas

Replica counts.

FieldDescription
status.replicasDesired replicas
status.readyReplicasReady replicas
status.availableReplicasAvailable replicas

conditions

Standard Kubernetes conditions:

TypeDescription
AvailableAgent is ready to accept connections
PromptPackReadyReferenced PromptPack is valid
ToolRegistryReadyReferenced ToolRegistry is valid

Example

Complete AgentRuntime example:

apiVersion: omnia.altairalabs.ai/v1alpha1
kind: AgentRuntime
metadata:
  name: production-agent
  namespace: agents
spec:
  replicas: 3
  provider:
    name: openai
    model: gpt-4-turbo
    apiKeySecretRef:
      name: openai-credentials
      key: api-key
  promptPackRef:
    name: customer-service-prompts
  toolRegistryRef:
    name: service-tools
  facade:
    type: websocket
    port: 8080
  session:
    type: redis
    ttl: 24h
    storeRef:
      name: redis-credentials
      key: url
  resources:
    requests:
      cpu: "500m"
      memory: "256Mi"
    limits:
      cpu: "1000m"
      memory: "512Mi"
  env:
    - name: LOG_LEVEL
      value: info