Custom resource definitions

The Kubernetes API surface installed by the Kaigents operator chart.

Resource catalog

The chart contains v1alpha1, namespaced CRDs in the core.kaigents.io API group. Verify the installed schemas before applying examples; a concept in the domain model is not necessarily exposed as a CRD in every deployment.

  • Agent and Team define actors and grouping.
  • Task and Process define individual work and ordered steps.
  • Run requests an execution and records its status and artifacts.
  • Tool and MCPServer configure callable external tools.
  • ModelEndpoint and MemoryPolicy configure models and memory.

Inspect the live cluster

kubectl get crds | sort
kubectl explain agent.spec --api-version=core.kaigents.io/v1alpha1
kubectl explain run.spec.target --api-version=core.kaigents.io/v1alpha1

Use the right resource for each job

  • Agent: a configured actor and its default prompt, model selection, and tool policy.
  • Team: named bindings to Agents, optionally with per-binding context or prompt overrides.
  • Task: prompt, agentName, approval flag, and string metadata for one reusable step.
  • Process: ordered steps with id, name, taskRef, and optional maxReworkAttempts.
  • Run: a concrete execution targeting an Agent or Team, with input and optional model and routing overrides.
  • MCPServer and Tool: tool-service endpoint and named callable capability.
  • ModelEndpoint and MemoryPolicy: backend discovery and declarative memory settings.

Common configuration mistakes

All these resources are namespaced. A target reference to a resource in another namespace will not be satisfied merely because the resource exists on the cluster. CRD validation checks shapes and basic enum values; it cannot confirm that a referenced name exists, that a model responds, or that a tool server will allow the call.

Routing contextBudgetStrategy in the chart schema is limited to Summarize, Truncate, or Error. Do not substitute the richer engine-internal strategies into a Kubernetes manifest without checking the installed schema.

Skills have a separate installation path

The Rust engine defines a Skill resource, but the current operator Helm chart does not include a Skill CRD. Do not assume kubectl can create Skill objects until the corresponding CRD and controller are installed.

Check the version before applying

The installed cluster schema is the final authority for an installation. Compare it with the checked-out Helm chart under charts/kaigents-operator/crds whenever an example fails schema validation.

kubectl get crd agents.core.kaigents.io -o jsonpath="{.spec.versions[*].name}"
kubectl explain agent.spec.allowedTools --api-version=core.kaigents.io/v1alpha1
kubectl explain process.spec.steps --api-version=core.kaigents.io/v1alpha1