Skip to main content

Kubernetes CRDs Reference

STOA Platform ships five namespaced Custom Resource Definitions (gostoa.dev/v1alpha1) in charts/stoa-platform/crds/ for declarative MCP tool registration, agent context injection, and multi-gateway reconciliation.

Available CRDs (gostoa.dev/v1alpha1)​

KindPlural / Short NameReconciler / WatcherPurpose
Tooltools / toolstoa-gateway (CrdWatcher)Individual HTTP-backed MCP tool definition
ToolSettoolsets / tsstoa-gateway (CrdWatcher)Upstream MCP server connection (sse or streamable-http) exposing discovered tools
Skillskills / skstoa-gateway (CrdWatcher)Scoped system-prompt context instructions (global, tenant, tool, user)
GatewayInstancegatewayinstances / gwistoa-operator (Python/Kopf, Beta)Declarative registration and health tracking of a STOA or third-party gateway instance
GatewayBindinggatewaybindings / gwbstoa-operator (Python/Kopf, Beta)Declarative binding of a catalog API and policies onto a GatewayInstance

(Note: stoa-gateway's Rust K8s module also contains an internal GuardrailPolicy watcher struct, which is not currently shipped as a CRD manifest in charts/stoa-platform/crds/.)

Installation​

All five CRDs are installed automatically with the ./charts/stoa-platform Helm chart from a stoa-platform/stoa checkout:

helm install stoa-platform ./charts/stoa-platform -n stoa-system --create-namespace \
-f values-override.yaml

To apply or upgrade CRDs explicitly (recommended before helm upgrade, as Helm does not overwrite existing CRDs):

kubectl apply -f charts/stoa-platform/crds/

Namespace Scoping & Runtime Behavior​

All five CRDs are Namespaced. When stoa-gateway is compiled with the k8s Cargo feature and started with STOA_K8S_ENABLED=true, its CrdWatcher (stoa-gateway/src/k8s/watcher.rs) watches Tool, ToolSet, and Skill resources across namespaces, maps metadata.namespace to the owning tenant boundary, and updates in-memory registries directly (it does not patch .status subresources on Tool, ToolSet, or Skill). GatewayInstance and GatewayBinding are reconciled separately by stoa-operator (Beta).

Quick Example​

apiVersion: gostoa.dev/v1alpha1
kind: Tool
metadata:
name: weather-api
namespace: tenant-acme
spec:
displayName: Weather API
description: Get current weather for a location
endpoint: https://api.weather.example/v1/current
method: POST
inputSchema:
type: object
properties:
location:
type: string
description: City name or coordinates
required:
- location
kubectl apply -f weather-tool.yaml
kubectl get tools,toolsets,skills,gatewayinstances,gatewaybindings -n tenant-acme

Cookies and privacy

With your permission, we use cookies to measure visits and understand navigation to improve the site.

Learn more

Google Analytics measures visits and useful clicks. Microsoft Clarity provides masked interaction replays. No advertising use. Your choice is saved for six months. You can change or withdraw it at any time using the “Cookies” button.

Read the audience measurement details