docs/internal/k8s-workspace-research-prompt.md
Hand the prompt below to a research-capable LLM (web access on). It is
written to gather the real-world best practices, common user flows, and
pain points that should shape the k8s-workspace plugin and the EKS
authority. Findings feed back into
K8S_WORKSPACE_PLUGIN_DESIGN.md and
K8S_AUTHORITY_DESIGN.md.
You are a senior platform engineer and developer-experience researcher.
I am designing a feature for a terminal code editor that lets a developer
edit code "inside" an ephemeral Kubernetes pod running on their own
Amazon EKS cluster, in their own AWS account. The editor attaches to a
running pod (over kubectl exec, bootstrapping a small agent) and treats
that pod as the workspace. The pod mounts the source tree from a durable,
cheap tier (an S3-backed volume, e.g. Mountpoint for Amazon S3 CSI),
so that when the pod is torn down the code still lives in S3, and a new
pod re-mounting the same bucket restores the workspace. A companion
editor plugin lets users bring pods up/down in a fully customizable
way — built-in helpers (kubectl apply of a manifest, kubectl run)
plus an escape hatch that runs any user command/script (so teams who
provision "VDI-style developer containers" via Terraform in a separate
repo, Helm, Pulumi, CDK, or an internal CLI can plug their flow in).
Research how teams actually do this today and where it hurts. Prioritize primary, recent (last ~2-3 years), and authoritative sources: AWS docs and blogs, Kubernetes docs, project docs/GitHub issues for the tools below, conference talks, and detailed practitioner write-ups. Distinguish vendor marketing from independent experience reports. For every non-obvious claim, cite the source and note its date; flag anything that may be outdated or version-specific. Call out where sources disagree.
1. Remote / cloud dev environment landscape & expectations
devcontainer CLI, JetBrains Gateway/Space, VS Code Remote-SSH /
Remote-Tunnels / Dev Containers, AWS Cloud9 (and its deprecation)?2. Ephemeral dev pods on Kubernetes / EKS — patterns & best practices
kubectl exec reliability for
long-lived sessions, TTY/resize handling, exec timeouts and proxy/idle
disconnects, and how people keep exec-based sessions alive.exec constraints).3. Storage for code in the pod (the durability story)
rename, no random/in-place
writes, append behavior, write-on-close semantics, consistency,
performance for many small files, metadata/stat cost. How do tools
work around the no-rename limitation for "atomic save"?s3fs/goofys, and "local disk + sync to S3"
approaches. When is each chosen?4. Bring-your-own-cluster / bring-your-own-AWS auth & access
aws eks get-token,
aws-iam-authenticator, the kubeconfig exec credential flow, EKS
access entries vs. the legacy aws-auth ConfigMap, SSO/IAM Identity
Center.5. Provisioning flows teams actually use (the customization surface)
terraform output as an integration point, apply latency,
drift, who runs apply (developer vs. platform vs. CI), and how an
external tool should invoke these without owning them.make targets) and
what makes them feel good vs. painful.6. The attach/UX layer
7. Cost, governance, and pitfalls
exec rights, secrets in env, S3 bucket scoping).rename support, cost, when to choose.Be concrete and skeptical. Prefer specifics (flags, limits, version caveats, real numbers) over generalities. If something is commonly believed but wrong or outdated, say so and cite why.