Kubernetes Sandbox

How it works

Launch wraps

Before an agent, terminal or paseo.json setup/teardown command starts, Paseo asks plugin hooks for a wrap. For an opted-in workspace the plugin makes sure the pod exists and returns [kube-exec.sh, options, "--"]. Paseo runs the wrap followed by the original command; the launcher runs it in the pod and passes stdin, stdout and the exit code through.

Pod lifecycle

Pods are created on first use and deleted on workspace archive, idle timeout, or from the Pods tab. A sweep every minute removes idle pods; the first sweep after start also removes pods whose workspace no longer exists.

Stopping

On TERM, INT or HUP the launcher kills the remote process with a second kubectl exec. SIGKILL cannot be trapped: the remote process then lives until the pod is deleted.

Limits