Skip to content

[DOCS] Document kubernetes workspace gateway modes and gateway_env for infer daemon #1052

Closed

Description

@edenreich

Summary

infer daemon workspaces of kind: kubernetes gain mode and gateway_env. In the default standard mode a
teleport deploys an operator Gateway per workspace beside the sessions and writes the gateway_env provider keys
into its Secret from the teleporting daemon's environment or ~/.infer/auth.yaml, so the agent's pod only knows the
gateway URL and can never read the keys into its context. all-in-one runs the gateway inside the pod instead.
forward_env stays for credentials the agent itself needs. The Gateway and its Secret are owned by every session's
Orchestrator and go with the last one. The workspace namespace must match the operator's
WATCH_NAMESPACE_SELECTOR (inference-gateway.com/managed=true by default).

Source: inference-gateway/cli#1667, todo on inference-gateway/cli#1653.

Acceptance Criteria

  • The CLI's daemon / teleport page documents mode (standard, all-in-one) and gateway_env with a daemon.yaml
    example, and when to use forward_env instead.
  • The credential sources (environment first, then ~/.infer/auth.yaml) and the keep-on-unset behavior are stated.
  • Kubernetes prerequisites list the namespace label and the RBAC additions: get, create, update on
    gateways.core.inference-gateway.com, get on deployments, update on secrets.
  • The session-teleport example's k8s-cloud workspace (ollama_cloud/glm-5.3-flash) is referenced.

Activity

  1. added
    documentation
    on Oct 31, 2026
  2. added theissue type on Oct 31, 2026
  3. moved this to Todo in 2026on Oct 31, 2026
  4. edenreich commented on Oct 31, 2026

    @edenreich
    ContributorAuthor

    @claude can you document this? use /ponytail:ponytail

  5. inference-gateway-maintainer commented on Oct 31, 2026

    @inference-gateway-maintainer
    Contributor

    Claude finished @edenreich's task in 3m 16s —— View job • docs/issue-1052-20261031-1946 • [Create PR ➔](https://github.com/inference-gateway/docs/compare/main...docs/issue-1052-20261031-1946?quick_pull=1&title=Issue%20%231052%3A%20Changes%20from%20Claude&body=This%20PR%20addresses%20issue%20%231052%0A%0AGenerated%20with%20%5BClaude%20Code%5D(https%3A%2F%2Fclaude.ai%2Fcode)


    Documented the kubernetes workspace gateway modes

    • Gather context (no workspace/teleport coverage existed on the docs site, sourced the facts from the upstream CLI docs/daemon.md on the feature branch)
    • New Workspaces and teleports section in the daemon chapter of cli.md, with a daemon.yaml example carrying a kind: kubernetes entry
    • mode table: standard (per-workspace operator Gateway, keys in its Secret, the pod only learns the URL) vs all-in-one (gateway in the pod, keys in the agent's environment), plus Gateway/Secret ownership and the no-gateway_env case
    • gateway_env vs forward_env - model credentials vs credentials the agent itself needs
    • Credential sources (environment first, then ~/.infer/auth.yaml), keep-on-unset, drop-when-unlisted, and that only a changed value rolls the gateway
    • Kubernetes prerequisites: the inference-gateway.com/managed=true namespace label with a kubectl label line, and the RBAC additions (get/create/update on gateways.core.inference-gateway.com, get on deployments, update on secrets)
    • Referenced examples/session-teleport and its k8s-cloud workspace on ollama_cloud/glm-5.3-flash
    • bun run lint:md, bun run format:check, bun run build all pass
    • Committed and opened docs(cli): kubernetes workspace gateway modes and gateway_env #1054

    All in cli.md as one section - no new cli-*.md page, per the repo conventions. Since the site had nothing on workspaces at all, the section opens with the smallest framing needed to make mode legible.

    Not done: the broader teleport mechanics (leases, retention, the checkpoint protocol) still live only in the CLI repo's docs/daemon.md - out of this issue's scope. The upstream CLI change is not released yet, so the documented flags land ahead of the release.
    | docs/issue-1052-20261031-1946

  6. moved this from Todo to In progress in 2026on Oct 31, 2026
  7. moved this from In progress to QA in 2026on Oct 31, 2026
  8. moved this from QA to Done in 2026on Oct 31, 2026
  9. inference-gateway-releaser commented on Oct 31, 2026

    @inference-gateway-releaser
    Contributor

    🎉 This issue has been resolved in version 0.9.23 🎉

    The release is available on GitHub release

    Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationreleased

    Type

    Projects

    • Status
      Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions