Skip to content

[DOCS] Document workspace volumes in the CLI's daemon.yaml #1188

Closed

Description

@edenreich

Summary

A Kubernetes workspace in the CLI's daemon.yaml gains a volumes key, which mounts PersistentVolumeClaims that already exist in the workspace's namespace into every session's pod. The docs site does not describe it. The daemon section of the CLI page (/cli/#daemon) is the place for it, where the other workspace keys are covered.

workspaces:
  - name: ubuntu-desktop
    kind: kubernetes
    namespace: infer-workspaces
    image: ghcr.io/inference-gateway/computer:latest
    volumes:
      - name: resolve
        claim: davinci-resolve
        mount_path: /opt/resolve
      - name: footage
        claim: raw-footage
        mount_path: /mnt/footage
        read_only: true

What the page should cover:

  • Why it exists: a session's own storage starts empty and user_data runs again on every boot, so a heavy app is installed again on each machine and sessions had no way to share content.
  • The fields: name (unique in the workspace), claim, an absolute mount_path and read_only (default false). Only a kind: kubernetes workspace takes them.
  • read_only: true is for content an agent copies into /workspace before it changes it, so the original stays as it is.
  • The claim is created and filled outside the session. A session never creates or deletes it, and stopping the session or its retention leaves the claim and its data in place.
  • The list is fixed when a session's Orchestrator is created, like user_data. A change reaches the sessions teleported after it.
  • The operator refuses a mount_path that is, or lies under, /workspace, /home/infer/.infer/projects or /var/lib/cloud/seed/nocloud.
  • A ReadWriteOnce claim is shared by pods on one node only. Sessions on several nodes need ReadWriteMany or ReadOnlyMany.
  • It needs the operator release that ships feat(orchestrator): mount existing claims into a sandbox operator#340, and an older operator fails the teleport with an upgrade message.
  • Link to the operator page's spec.sandbox.volumes, which [DOCS] Document spec.sandbox.volumes on the operator's Orchestrator #1186 documents.

Source PR: inference-gateway/cli#1804
Source issue: inference-gateway/cli#1803

Acceptance Criteria

  • The CLI daemon docs document the volumes key of a Kubernetes workspace with the example above and each field
  • They explain the read-only option and when to use it
  • They state that a session never creates or deletes the claim, and that the list is fixed when a session is created
  • They state the mount path rules, the access-mode rule and the operator version the key needs
  • They link to spec.sandbox.volumes on the operator page

Activity

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

    @edenreich
    ContributorAuthor

    @claude can you work on this?

  5. inference-gateway-maintainer commented on Nov 10, 2026

    @inference-gateway-maintainer
    Contributor

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


    Done

    • Read the daemon section of cli.md, the operator page's spec.sandbox.volumes and the source CLI change
    • Wrote a new "Volumes the sessions share (volumes)" subsection next to user_data in cli.md
    • Added the operator v0.36.0 line to Kubernetes prerequisites
    • Validated: bun run lint:md, bun run format:check, bun run build all pass
    • Committed and opened #1189

    What it covers

    The example from the issue, a field table (name, claim, mount_path, read_only), why the key exists (empty storage, user_data re-running every boot), when read_only: true is right, that a session never creates or deletes the claim and that stopping it or its retention leaves the data in place, Kubernetes-only, the refused mount paths (/workspace, /home/infer/.infer/projects, /var/lib/cloud/seed/nocloud), a missing claim leaving the pod unscheduled, the ReadWriteOnce single-node rule, the list being fixed at Orchestrator creation, operator v0.36.0 or newer, and a link to spec.sandbox.volumes.

    The operator version comes from the CLI source change (volumesOperatorVersion = "v0.36.0") rather than from a tracker reference, per the repo's no-issue-links rule.

    I did not run bun run preview for a visual check - this is body content on an existing page, no nav or theme change.
    | Branch: docs/issue-1188-20261110-2355

  6. moved this from Todo to In progress in 2026on Nov 10, 2026
  7. moved this from In progress to QA in 2026on Nov 10, 2026
  8. moved this from QA to Done in 2026on Nov 11, 2026
  9. inference-gateway-releaser commented on Nov 12, 2026

    @inference-gateway-releaser
    Contributor

    🎉 This issue has been resolved in version 0.9.26 🎉

    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