Repository navigation
Description
What's broken
K8sDriver::apply (crates/oabctl/src/k8s_driver.rs:324-360) only builds and
applies a Deployment (build_deployment, line 180). It never creates a
Service, NodePort, Ingress, or anything else that exposes a pod's ACP
port outside the cluster. The AppliedService it returns always has
webhook_urls: Vec::new() (line 355) — that field is never populated for
this driver, unlike the ECS path (apply.rs + ingress.rs, which does
build real webhook/API-Gateway URLs into that same field).
Net effect: a k8s-runtime agent gets an ACP auth key written into its
agents.toml/secret (same as ECS), but there is no address to put next to
it — nothing in the cluster forwards traffic to the pod's ACP port. Found
while live-testing + Add instance against a real cluster today (deployed
pod oab-artemis, confirmed via kubectl describe/agents.toml that the
key is configured but there's no reachable endpoint) — and it looks like
this was also silently true for the earlier k8s test agent ("seaturtle").
This blocks Studio's k8s chat panel work ([[studio-remote-verify-topology]]
in Orca's memory / the ACP-chat effort) for k8s fleets specifically — ECS
fleets aren't affected (ingress.rs already wires webhook URLs there).
Two candidate fixes (undecided — this is why this is an issue before a PR)
- Real
Serviceobject, exposed via whatever the target cluster gives
us locally (e.g. OrbStack's automatic localhost port mapping for
NodePort/LoadBalancerservices). Simple, standard k8s, but "reachable
from the operator's machine" depends on the cluster/environment doing
that mapping — works out of the box on OrbStack, not guaranteed on every
cluster (bare NodePort needs node IP reachability; no ALB-equivalent here
unless we also stand up an Ingress controller). - Studio-side dynamic port-forward via the
kubecrate (same one
k8s_driver.rsalready depends on) — Studio opens a forwarded connection
to the pod's ACP port on demand when a k8s agent's console/chat is
opened, no cluster-side networking object needed. Works on any cluster
Studio has API access to (no assumption about NodePort/LB support), but
the tunnel only exists while the console session is open — a different
lifecycle than ECS's always-on ingress URL.
Related: #104, #111 (k8s fleet onboarding UX — this issue is the networking
layer underneath that work). Needs a decision (Service vs. port-forward, or
both for different use cases) before scoping a PR.
Activity
brettchien commentedon Sep 13, 2026
Third option, found while sketching implementation — parity with what ECS actually does today
I assumed ECS's ACP exposure was ALB/API-Gateway-based (the
Ingress/webhook_urlspath inapply.rs). It isn't — cross-checked against Orca's own working setup: ECS agents reach/acpvia acloudflaredsidecar container in the task def (outbound-only tunnel to Cloudflare,orca-acp.brettchien.ccproxied DNS → tunnel → sidecar → the task's loopback port), not any inbound AWS networking object.ingress.rs/webhook_urlsis a separate, unrelated mechanism for inbound platform webhooks (Telegram/LINE).k8s_driver.rs'sbuild_deployment(line 273-291) builds exactly one container ("openab") — no second container today.Option 3: run the same
cloudflaredsidecar in the pod.pod_spec.containers→vec![openab_container, cloudflared_container], wired with aTUNNEL_TOKENsecret via the samek8s-secret://URI conventionsecret_env_varsalready supports (no new secrets plumbing needed).orca-acptunnel — manual/spike first, matches the "complete mira" plan item 1 in [[mira-acp-provisioning-gap]]).This is the one I'd lean toward — it's the already-proven pattern (Orca runs on it right now), not a new networking model to validate. Still Brett's call.
feat(k8s): add ACP Service for k8s-runtime agents (studio#155)
test(k8s): add integration tests for ACP Service (studio#155)
Reese-max commentedon Oct 5, 2026
Work for this issue is tracked on open PR #167 (
devin/issue-155). Leaving issue open until that PR merges; no fleet requeue.