Skip to content

feat(orchestrator): run the full infer daemon with optional channels and the AG-UI binding - #300

Merged
edenreich merged 1 commit into
mainfrom
feat/orchestrator-daemon-binding
Oct 31, 2026
Merged

edenreich merged 1 commit into
mainfrom
feat/orchestrator-daemon-binding

Conversation

@edenreich

Copy link
Copy Markdown
Contributor

Summary

An Orchestrator can now deploy infer daemon without a Telegram bot, a gateway or a model, and can expose the daemon's AG-UI binding. That binding is the WebSocket the chat TUI, the browser extension and other daemons sync sessions over.

Closes #297

Changes

  • API
    • channels, channels.telegram, gateway and agent are optional, so the CRD requires only image. Their env vars are only set when configured.
    • New spec.daemon.binding, mirroring the CLI's daemon.binding: port (default 52789), tokenSecretRef, and tls.secretName plus tls.clientAuth.
    • tls is required because the binding listens on every interface. A CEL rule rejects a binding that has neither a token nor client-certificate auth.
  • Controller
    • With a binding, it sets the INFER_DAEMON_BINDING_* env vars and mounts the TLS Secret read-only at /etc/infer/tls.
    • It also adds a container port, a TCP readiness probe and a <name>-binding Service. The Service shares the receiver Service's create, update and delete logic, which is now one helper.
    • A spec that gives the daemon nothing to run (no channels, binding or tools.schedule) gets Ready=False with reason InvalidSpec, and no Deployment is created. Heartbeat and A2A-server switches in spec.env count, so those Orchestrators stay valid.
    • Existing Orchestrators render the same Deployment as before, with the env vars in the same order, so upgrading the operator doesn't restart their pods.
  • Docs
    • A README section on the binding.
    • A new examples/daemon/orchestrator.yaml, which the examples test strict-decodes.
    • A sample in config/samples.
  • Generated: CRDs, manifests/crds.yaml and manifests/install.yaml are regenerated with task generate and task manifests.

Test plan

  • task test (envtest). New specs cover:
    • the binding env vars, with and without clientAuth and the token
    • the mount, port and readiness probe
    • the <name>-binding Service on the default port
    • the InvalidSpec rejection, which creates no Deployment
    • the CEL rule, enforced by the envtest API server
    • daemonHasWork, including the spec.env switches
    • no binding wiring when spec.daemon.binding is unset
  • task fmt and task vet
  • The CLI image built from the CLI's main, started with exactly the env vars the controller sets and no channels:
    • the daemon started and logged binding listening on :52789
    • the TLS handshake against the mounted certificate verified
  • task test:e2e (CI)

task lint reports one finding that main has too: the deprecated Requeue at internal/controller/gpu_controller.go:109.

…and the AG-UI binding

An Orchestrator no longer needs a Telegram bot, a gateway or a model.
channels, channels.telegram, gateway and agent are optional, and their
env vars are only set when they are configured.

spec.daemon.binding turns on the daemon's AG-UI binding, the WebSocket
devices and other daemons sync sessions over. It listens on every
interface and serves TLS from a Secret mounted at /etc/infer/tls, reads
its token from a Secret, and verifies client certificates against ca.crt
when clientAuth is on. A CEL rule rejects a binding that authenticates no
client. The controller adds a <name>-binding Service and a readiness
probe on the binding port.

A spec that gives the daemon nothing to run gets Ready=False with reason
InvalidSpec and no Deployment. spec.env switches for the heartbeat and
the A2A server count, so such Orchestrators stay valid. Existing
Orchestrators render the same Deployment as before.

Closes #297
@edenreich
edenreich requested a review from a team as a code owner October 31, 2026 14:40
@edenreich
edenreich merged commit fa7d927 into main Oct 31, 2026
1 check passed
@edenreich
edenreich deleted the feat/orchestrator-daemon-binding branch October 31, 2026 14:50
inference-gateway-releaser Bot added a commit that referenced this pull request Oct 31, 2026
## [0.28.0](v0.27.1...v0.28.0) (2026-10-31)

### ✨ Features

* **orchestrator:** run the daemon in an agent-sandbox Sandbox with runtime: Sandbox ([#301](#301)) ([63386e2](63386e2)), closes [#298](#298)
* **orchestrator:** run the full infer daemon with optional channels and the AG-UI binding ([#300](#300)) ([fa7d927](fa7d927)), closes [#297](#297)

### 🐛 Bug Fixes

* **orchestrator:** run infer daemon instead of the removed channels-manager ([#299](#299)) ([62a6af7](62a6af7)), closes [#296](#296), references [inference-gateway/cli#1051](inference-gateway/cli#1051)

### 👷 CI

* **deps:** bump actions/setup-node ([#288](#288)) ([d98dcb2](d98dcb2))
* **deps:** bump docker/login-action ([#293](#293)) ([5f0cef1](5f0cef1))
* **deps:** bump github.com/onsi/ginkgo/v2 ([#289](#289)) ([03684df](03684df))
* **deps:** bump rancher/k3s ([#283](#283)) ([d58b0db](d58b0db))
* **deps:** bump sigs.k8s.io/controller-runtime ([#284](#284)) ([4dc8bc9](4dc8bc9))
* **deps:** bump sigs.k8s.io/gateway-api ([#287](#287)) ([262ff14](262ff14))
* **deps:** bump the github-actions group with 2 updates ([#290](#290)) ([cf4c07b](cf4c07b))
* **release:** label issues and PRs shipped in an rc with rc ([#295](#295)) ([25cac50](25cac50))

### 🔧 Miscellaneous

* **deps:** bump claude-code 2.1.285 -> 2.1.289 ([#285](#285)) ([5e36bc7](5e36bc7))
* **deps:** bump claude-code 2.1.289 -> 2.1.296 ([#291](#291)) ([eb53de2](eb53de2))
* **deps:** bump claude-code 2.1.296 -> 2.1.308 ([#294](#294)) ([025a54a](025a54a))
* **deps:** bump infer CLI v0.221.1 -> v0.226.0 ([#286](#286)) ([505d489](505d489))
* **deps:** bump infer CLI v0.226.0 -> v0.231.1 ([#292](#292)) ([490b5af](490b5af))
@inference-gateway-releaser

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 0.28.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@inference-gateway-releaser inference-gateway-releaser Bot added the released Shipped in a release label Oct 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

released Shipped in a release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE] Orchestrator runs the full infer daemon: optional channels and the AG-UI binding

1 participant