Skip to content

[FEATURE] Workspace volumes in daemon.yaml #1803

Description

@edenreich

Summary

A Kubernetes workspace in daemon.yaml cannot mount anything besides its own per-session storage. Every machine starts empty, so a heavy app installed through user_data is downloaded and installed again on every pod boot - DaVinci Resolve is about 1.8GB - and there is no way to hand a session a shared, pre-filled volume.

Add a volumes key to a workspace. Each entry mounts a PersistentVolumeClaim that already exists in the workspace's namespace:

workspaces:
  - name: ubuntu-desktop
    kind: kubernetes
    volumes:
      - name: resolve
        claim: davinci-resolve
        mount_path: /opt/resolve
      - name: footage
        claim: raw-footage
        mount_path: /mnt/footage
        read_only: true

read_only is part of the definition on purpose. Raw content, such as footage, is mounted read-only so the agent copies it into its workspace before editing and can never change the original.

The key maps to spec.sandbox.volumes on the Orchestrator, which inference-gateway/operator#339 adds. WorkspaceEntry (config/daemon.go) gains the field and orchestrator() (internal/agent/infrastructure/kubernetes/workspace.go) sends it. The create call uses strict field validation, so an operator without the field refuses the Orchestrator - this needs an operator-version gate like userDataOperatorVersion.

The claim is created and filled outside the session. The CLI never creates or deletes it.

Depends on inference-gateway/operator#339.

Acceptance Criteria

  • A workspace accepts volumes, a list of name, claim, mount_path and optional read_only (default false)
  • The list is sent as spec.sandbox.volumes when a session is teleported to the workspace
  • Loading daemon.yaml rejects duplicate names, an empty claim and a mount_path that is not absolute, naming the workspace and the entry
  • A workspace with volumes on an operator older than the one that ships [FEATURE] Mount existing claims into an Orchestrator's sandbox operator#339 fails with a message that says to upgrade the operator
  • A workspace on compute keeps volumes, as it keeps image, storage and user_data
  • docs/daemon.md documents the key under "Workspaces and teleports", including that a ReadWriteOnce claim is shared within one node only
  • examples/session-teleport/daemon.yaml shows a workspace with a read-only volume

Activity

  1. added
    enhancement
    on Nov 10, 2026
  2. moved this from Todo to In progress in 2026on Nov 10, 2026
  3. moved this from In progress to QA in 2026on Nov 10, 2026
  4. inference-gateway-releaser commented on Nov 11, 2026

    @inference-gateway-releaser
    Contributor

    🎉 This issue has been resolved in version 0.255.0 🎉

    The release is available on:

    Your semantic-release bot 📦🚀

  5. moved this from QA to Done in 2026on Nov 11, 2026
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

    enhancementreleased

    Projects

    • Status
      Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions