Repository navigation
Replies: 1 comment
|
see #37320 for a related proposal regarding the authentication and an implementation of a kubernetes operator that can manage headless t3code environments here https://github.com/derfred/t3code-operator/ |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Problem
T3 already lets one client control multiple machines, supports Tailscale/SSH/T3 Connect routes, optional new-thread load balancing, and (behind Linked environments beta) persistent peer links and
delegate_taskto another environment. I run self-hosted K3s workloads over Tailscale and want to use that existing T3 control surface with on-demand, isolated K3s-backed agent environments—without running a second agent scheduler or relying on a managed cloud service.Today I can connect to a T3 server that already exists. The missing piece is: provision a worker environment, make its identity/reachability stable, obtain the user's permission to link it, then resume/stop/dispose it safely. A K3s Pod/Job is not itself a T3 environment, and the client-side environment picker does not provision or grant server-to-server access.
Proposed seam: an optional, external environment-provisioning broker
Start outside T3 core: a narrow K3s adapter/broker manages Kubernetes resources, then returns a normal T3 environment endpoint and identity. T3 continues to own threads, approvals, tools, remote delegation and durable orchestration.
The concrete question: Is the right extension boundary a standalone broker and existing
t3 environment link/PeerLinks+ remote delegation, with no new core API at first? If a small native integration is eventually justified, would maintainers prefer (a) a provisioning hook that returns an endpoint and stable environment ID or (b) an adapter behind an existing environment-management service? I am not asking to implement a new UI, scheduler or Kubernetes controller in T3 core now.Scope and guardrails
Smallest acceptance proof
Relationship to existing work (not duplicates)
apps/server/src/peer/{PeerLinks,RemoteDelegation}.ts: environment ID / routing / authorization / delegation already have their own owners.mainand beta state before implementation.I can keep the proof and implementation on my downstream fork issue until there is an agreed small upstream seam. No upstream PR or core change is requested by this issue. I understand feature proposals ordinarily belong in Ideas discussions; if that's the preferred venue, I can move the design discussion there instead of treating the issue as implementation approval.
All reactions