Repository navigation
feat(gateway): add round-robin model routing config - #176
Conversation
Expose the gateway's opt-in model routing (ROUTING_ENABLED / ROUTING_CONFIG_PATH) via a new spec.modelRouting section on the Gateway CRD. Inline config is rendered into an operator-owned ConfigMap and mounted; configMapRef mounts an existing one. Distinct from spec.routing (north-south Gateway API traffic). Closes #175
|
@claude Keep the names simple, I don't like the modelRouting, it should just be routing - don't over-engineer for things you ain't gonna need. YAGNI use /ponytail:ponytail |
|
Claude finished @edenreich's task in 10m 29s —— View job Renamed
|
Model round-robin routing is the gateway's core job and matches its ROUTING_ENABLED/ROUTING_CONFIG_PATH env, so it takes the plain `routing` name. The pre-existing north-south Kubernetes Gateway API field is renamed spec.routing -> spec.gatewayAPI to free the name (it configures gateway.networking.k8s.io exposure, so gatewayAPI is more precise).
|
@claude CI is failing - e2e tests. can you fix this? use /ponytail:ponytail |
|
Claude finished @edenreich's task in 2m 7s —— View job Fixed the failing e2e tests 🎀Root cause: this PR renamed the north-south field That failed Fix (
Pushed as |
|
@claude E2E tests still fail, can you fix this? |
|
Claude finished @edenreich's task in 11m 13s —— View job
Root causeThe e2e code was already correct on HEAD - Why: bot pushes to this branch advance the git ref but don't advance the PR head or fire a
|
Co-authored-by: Eden Reich <[email protected]>
## [0.21.0](v0.20.0...v0.21.0) (2026-07-23) ### ✨ Features * **agent:** surface ADK MCP client config as A2A_MCP_* ([#172](#172)) ([fbab300](fbab300)), closes [#171](#171) * **gateway:** add round-robin model routing config ([#176](#176)) ([062f48a](062f48a)), closes [#175](#175) ### 🐛 Bug Fixes * **gateway:** emit TELEMETRY_TRACING_* env vars ([#170](#170)) ([691e3a5](691e3a5)) ### 📚 Documentation * document shared provider list in AGENTS.md ([#174](#174)) ([1533f59](1533f59)) ### 🔧 Miscellaneous * add skills for both claude and regular agents ([9f3bdf4](9f3bdf4))
|
🎉 This PR is included in version 0.21.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |

Summary
Exposes the gateway's opt-in, gateway-native round-robin model routing (Phase 1 of inference-gateway/inference-gateway#397, shipped in gateway v0.39.0 via inference-gateway/inference-gateway#490) through the operator.
A new
spec.modelRoutingsection on the Gateway CRD drives the gateway'sROUTING_ENABLED/ROUTING_CONFIG_PATHenv vars:modelRouting.enabled->ROUTING_ENABLED.modelRouting.config(inline routing YAML) -> rendered into an operator-owned ConfigMap (<gateway>-routing), mounted at/etc/inference-gateway/routing, withROUTING_CONFIG_PATHset to the file.modelRouting.configMapRef-> mounts an existing ConfigMap key instead of rendering inline config.Named
modelRouting(notrouting) on purpose:spec.routingis already taken for north-south Kubernetes Gateway API traffic, which is a different concept.Changes
api/v1alpha1: newModelRoutingSpec+spec.modelRoutingfield (+ generated deepcopy).gateway_controller:reconcileModelRoutingConfigrenders/deletes the owned ConfigMap; deployment mounts it and setsROUTING_ENABLED/ROUTING_CONFIG_PATH; controller nowOwnsConfigMaps.examples/gateway-with-model-routing/gateway.yaml(aliasfast-chatover a 2-deployment pool).Notes / downstream impact
modelRouting.configneeds a pod restart to take effect (marked with aponytail:comment; add a checksum/config pod annotation if hot-reload is wanted).modelRoutingblock - not present in this repo; tracked as a follow-up.[DOCS]issue will be opened in inference-gateway/docs for the operator-side routing config.Verified with
task test(controller suite green, 63.4% coverage) andtask lint(0 issues).Closes #175