Deploy with agentgateway
Use this topology when agentgateway owns the Kubernetes Gateway API data plane. Semantic Router runs as an Envoy ExtProc service: it evaluates the selected recipe and writes the chosen model into the request before agentgateway forwards it to an OpenAI-compatible backend.
Responsibility split
The deployment consists of:
- Semantic Router owns semantic policy, model selection, and recipe-scoped request or response processing.
- agentgateway owns the Gateway,
HTTPRoute, backend, and ExtProc policy. - The model server owns inference capacity. The simulator below is for validating the integration, not for production inference.
Prerequisites
You need:
- Kubernetes
1.31–1.36; kind is sufficient for the demo; - Gateway API
1.4–1.6CRDs (this guide installs1.6.0); - kubectl within the supported version skew for the cluster; and
- Helm
3.12or later.
This guide pins the agentgateway 1.4 release line, including ExtProc
processingOptions and allowModeOverride. Review the upstream
ExtProc reference
before upgrading either side of the integration.