apiVersion: v1
kind: ConfigMap
metadata:
  name: kagent-config
  namespace: kagent
  labels:
    app: kagent
    managed-by: vapora
data:
  kagent.config.yaml: |
    # Kagent Configuration
    server:
      host: 0.0.0.0
      port: 8080
      grpc_port: 50051

    # A2A Protocol Integration with VAPORA
    a2a:
      enabled: true
      vapora_server: "http://vapora-a2a:8003"
      discover_interval: 30s
      timeout: 30s

    # Agent Discovery
    discovery:
      kubernetes:
        enabled: true
        namespace: "kagent"
        label_selector: "agent=true"

    # Logging
    logging:
      level: info
      format: json

    # Metrics
    metrics:
      enabled: true
      port: 9090

    # Resource Limits
    resources:
      max_concurrent_tasks: 100
      task_timeout: 3600s
      memory_limit: "2Gi"
