Repository navigation
feat(workspaces): provision a local k3s cluster in Docker with one click - #455
Merged
Merged
Conversation
3 tasks
Contributor
|
🎉 This PR is included in version 0.57.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Settings > Workspaces gets a one-click Provision local cluster icon button, shown whenever Docker is running. One click gives you a working
ubuntu-desktopworkspace with no other tooling installed (no k3d, ctlptl, kubectl, yq or task):infer-k3s)ubuntu-desktopworkspace in~/.infer/daemon.yamlAgents whose
workspaceisubuntu-desktopthen get a desktop pod of their own after Restart CLI now.Changes
backend/src/local_cluster.rs(new): the Docker and k3s side.kubectl.agent-computer:localfrom the embeddedexamples/computer-use/desktopfiles, using the installedinferversion, and streams it into containerd withdocker save | ctr images import.infer-k3scontext. Every step can be repeated, so a second click repairs or refreshes the cluster.backend/src/workspace_settings.rs:provision_local_cluster(streams progress over a Channel) anddocker_availablecommands.gateway_env.ubuntu-desktopworkspace already points at another cluster.kubectlfor theinfer-k3scontext goes through the container, so Check workspace and Clean up machines work without kubectl on the host.frontend/components/WorkspacesTab.tsx,frontend/lib/tauri.ts: theProvision local clusterbutton streams each stage into the tab's notice line, plus a hint when Docker is missing.AGENTS.md: the DOM contract lists the new button.e2e/tests/workspace-provision.yaml: the mock-mode walkthrough.TODO left in
local_cluster.rs: pull the desktop image from a published registry instead of building it locally.Docs follow-up: inference-gateway/docs#1124