Skip to content

[DOCS] Desktop: provision a local k3s cluster for workspaces with one click #1124

Closed

Description

@edenreich

Summary

Inference Gateway Desktop's Settings > Workspaces tab now has a one-click Provision local cluster icon button, shown when Docker is running. It runs k3s in a Docker container (infer-k3s), installs agent-sandbox and the Inference Gateway operator, builds the computer-use Ubuntu desktop image and loads it into the cluster, adds the infer-k3s context to the kubeconfig, and registers an ubuntu-desktop workspace in ~/.infer/daemon.yaml. Only Docker is required. desktop.md (Workspaces) does not cover it yet.

Source PR: inference-gateway/desktop#455

Acceptance Criteria

  • desktop.md Workspaces documents the Provision local cluster button, that it needs only Docker, and what it creates (container, kubeconfig context, namespace, workspace)
  • It explains that a second click repairs or refreshes the same cluster, and that it refuses when an ubuntu-desktop workspace already points at another cluster
  • It notes that the workspace's agents use computer use and edit files without approval, because each runs in a pod of its own

Activity

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

    @edenreich
    ContributorAuthor

    @claude can you document this?

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

    @inference-gateway-maintainer
    Contributor

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


    Done - Provision local cluster is documented

    • Read desktop.md Workspaces and the source PR (desktop#455, plus workspace_settings.rs for the exact names and env)
    • Added the Provision local cluster paragraph to desktop.md Workspaces
    • bun run format, bun run lint:md, bun run build - all pass
    • Committed and opened #1125

    What it says

    Inserted before Detect clusters, since it is the path for someone with no cluster at all:

    • The button appears whenever Docker is running, and Docker is the only prerequisite - no k3d, ctlptl, kubectl or kubeconfig of your own.
    • What it creates, as a list: the infer-k3s k3s container on a fixed local port, agent-sandbox and the operator inside it (Gateway API CRDs come with k3s), the computer-use Ubuntu desktop image built for your installed infer version, the infer-k3s kubeconfig context merged by entry name leaving your current context alone (an unreadable kubeconfig stops the run rather than being overwritten), the labelled infer-workspaces namespace, and the ubuntu-desktop workspace in ~/.infer/daemon.yaml with your saved API keys as provider keys.
    • A second click repairs or refreshes the same cluster, and it refuses to start when an ubuntu-desktop workspace already points at another cluster - that entry is yours, so nothing is touched.
    • Its agents use the computer and edit files without asking, naming INFER_COMPUTER_USE_APPROVAL: never and the write/edit approvals, because each session runs in a pod of its own.
    • Still needs Restart CLI now before the daemon sees the workspace, with a pointer to Computer in the agent editor.

    One line also went into the prerequisites-check paragraph: the infer-k3s context's kubectl calls go through the container, so Check workspace works without kubectl on the host.

    Skipped: did not document the local-cluster part of Clean up machines, the mock-mode behavior, or the pinned agent-sandbox/operator versions as docs facts - those are implementation detail that will drift. Risk: the exact storage size and the agent-computer:local image tag are not spelled out, so the existing example YAML above is still the reference for a hand-written workspace.
    | Branch

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

    @inference-gateway-releaser
    Contributor

    🎉 This issue has been resolved in version 0.9.24 🎉

    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